BBP_Shortcodes::display_search_form()
Display the search form in an output buffer and return to ensure post/page contents are displayed first.
Description Description
Source Source
File: includes/common/shortcodes.php
public function display_search_form() {
// Bail if search is disabled
if ( ! bbp_allow_search() ) {
return;
}
// Start output buffer
$this->start( 'bbp_search_form' );
// Output templates
bbp_get_template_part( 'form', 'search' );
// Return contents of output buffer
return $this->end();
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.3.0 | Introduced. |