bbp_get_form_forum_title()

Return the value of forum title field


Description Description


Return Return

(string) Value of forum title field


Top ↑

Source Source

File: includes/forums/template.php

	function bbp_get_form_forum_title() {

		// Get _POST data
		if ( bbp_is_forum_form_post_request() && isset( $_POST['bbp_forum_title'] ) ) {
			$forum_title = wp_unslash( $_POST['bbp_forum_title'] );

		// Get edit data
		} elseif ( bbp_is_forum_edit() ) {
			$forum_title = bbp_get_global_post_field( 'post_title', 'raw' );

		// No data
		} else {
			$forum_title = '';
		}

		// Filter & return
		return apply_filters( 'bbp_get_form_forum_title', $forum_title );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.