BBP_Shortcodes::display_forum_form()

Display the forum form in an output buffer and return to ensure post/page contents are displayed first.

Description

Source

File: bp-forums/common/shortcodes.php

263
264
265
266
267
268
269
270
271
272
273
public function display_forum_form() {
 
    // Start output buffer
    $this->start( 'bbp_forum_form' );
 
    // Output templates
    bbp_get_template_part( 'form', 'forum' );
 
    // Return contents of output buffer
    return $this->end();
}

Changelog

Changelog
Version Description
bbPress (r3566) 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.