bp_search_form_action()
Return the “action” attribute for search forms.
Description
Return
(string) URL action attribute for search forms, eg example.com/search/.
Source
File: bp-core/bp-core-template.php
function bp_search_form_action() { /** * Filters the "action" attribute for search forms. * * @since BuddyPress 1.0.0 * * @param string $value Search form action url. */ return apply_filters( 'bp_search_form_action', trailingslashit( bp_get_root_domain() . '/' . bp_get_search_slug() ) ); }
Changelog
Version | Description |
---|---|
BuddyPress 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.