BP_Search::search_page_url( $value = '' )
Returns the url of the page which is selected to display search results.
Description
Return
(string) url of the serach results page
Source
File: bp-search/classes/class-bp-search.php
public function search_page_url( $value = "" ) {
$url = home_url( '/' );
if ( ! empty( $value ) ) {
$url = esc_url( add_query_arg( 's', urlencode( $value ), $url ) );
}
return $url;
}
Changelog
| Version | Description |
|---|---|
| BuddyBoss 1.0.0 | Introduced. |
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.