BP_Search::prepare_search_page()
setup everything before starting to display content for search page.
Description
Source
File: bp-search/classes/class-bp-search.php
750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 | public function prepare_search_page() { $args = array (); if ( isset( $_GET [ 'subset' ] ) && ! empty ( $_GET [ 'subset' ] ) ) { $args [ 'search_subset' ] = $_GET [ 'subset' ]; } if ( isset( $_GET [ 's' ] ) && ! empty ( $_GET [ 's' ] ) ) { $args [ 'search_term' ] = $_GET [ 's' ]; } if ( isset( $_GET [ 'list' ] ) && ! empty ( $_GET [ 'list' ] ) ) { $current_page = (int) $_GET [ 'list' ]; if ( $current_page > 0 ) { $args [ 'current_page' ] = $current_page ; } } $args = apply_filters( 'bp_search_search_page_args' , $args ); $this ->do_search( $args ); } |
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.