bbp_get_form_topic_edit_reason()
Return the value of the topic edit reason
Description
Return
(string) Topic edit reason value
Source
File: bp-forums/topics/template.php
4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 | function bbp_get_form_topic_edit_reason() { // Get _POST data if ( bbp_is_post_request() && isset( $_POST [ 'bbp_topic_edit_reason' ] ) ) { $topic_edit_reason = $_POST [ 'bbp_topic_edit_reason' ]; // No data } else { $topic_edit_reason = '' ; } return apply_filters( 'bbp_get_form_topic_edit_reason' , esc_attr( $topic_edit_reason ) ); } |
Changelog
Version | Description |
---|---|
bbPress (r2976) | 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.