bbp_get_form_forum_visibility()

Return value of forum visibility

Description

Return

(string) Value of topic content field

Source

File: bp-forums/forums/template.php

	function bbp_get_form_forum_visibility() {

		// Get _POST data
		if ( bbp_is_post_request() && isset( $_POST['bbp_forum_visibility'] ) ) {
			$forum_visibility = $_POST['bbp_forum_visibility'];

		// Get edit data
		} elseif ( bbp_is_forum_edit() ) {
			$forum_visibility = bbp_get_forum_visibility();

		// No data
		} else {
			$forum_visibility = bbpress()->public_status_id;
		}

		return apply_filters( 'bbp_get_form_forum_visibility', esc_attr( $forum_visibility ) );
	}

Changelog

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