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/.


Top ↑

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() ) );
}

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.