bbp_get_form_topic_edit_reason()
Return the value of the topic edit reason
Description Description
Return Return
(string) Topic edit reason value
Source Source
File: includes/topics/template.php
function bbp_get_form_topic_edit_reason() { // Get _POST data if ( bbp_is_topic_form_post_request() && isset( $_POST['bbp_topic_edit_reason'] ) ) { $topic_edit_reason = wp_unslash( $_POST['bbp_topic_edit_reason'] ); // No data } else { $topic_edit_reason = ''; } // Filter & return return apply_filters( 'bbp_get_form_topic_edit_reason', $topic_edit_reason ); }
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |