bps_get_directory_data()
Description
Source
File: bp-search/bp-search-functions.php
655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 | function bps_get_directory_data() { global $bps_directory_data ; $data = array (); $cookie = apply_filters( 'bps_cookie_name' , 'bps_directory' ); if ( ! defined( 'DOING_AJAX' ) ) { $data = isset ( $bps_directory_data ) ? $bps_directory_data : array (); } elseif ( isset ( $_COOKIE [ $cookie ] ) ) { $current = bps_current_page(); parse_str ( stripslashes ( $_COOKIE [ $cookie ] ), $data ); if ( $data [ 'page' ] != $current ) { $data = array (); } } return apply_filters( 'bps_directory_data' , $data ); } |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.