bp_search_form_action()
Return the “action” attribute for search forms.
Description Description
Return Return
(string) URL action attribute for search forms, eg example.com/search/.
Source Source
File: bp-core/bp-core-template.php
function bp_search_form_action() { /** * Filters the "action" attribute for search forms. * * @since 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 Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |