bbp_get_form_forum_content()
Return the value of forum content field
Description
Return
(string) Value of forum content field
Source
File: bp-forums/forums/template.php
2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 | function bbp_get_form_forum_content() { // Get _POST data if ( bbp_is_post_request() && isset( $_POST [ 'bbp_forum_content' ] ) ) { $forum_content = stripslashes ( $_POST [ 'bbp_forum_content' ] ); // Get edit data } elseif ( bbp_is_forum_edit() ) { $forum_content = bbp_get_global_post_field( 'post_content' , 'raw' ); // No data } else { $forum_content = '' ; } return apply_filters( 'bbp_get_form_forum_content' , $forum_content ); } |
Changelog
Version | Description |
---|---|
bbPress (r3551) | 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.