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

	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

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.