bbp_get_topic_statuses( int $topic_id )

Return an associative array of available topic statuses


Description Description


Parameters Parameters

$topic_id

(Optional) Topic id.


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/topics/functions.php

function bbp_get_topic_statuses( $topic_id = 0 ) {

	// Filter & return
	return (array) apply_filters( 'bbp_get_topic_statuses', array(
		bbp_get_public_status_id()  => _x( 'Open',    'Open the topic',      'bbpress' ),
		bbp_get_closed_status_id()  => _x( 'Closed',  'Close the topic',     'bbpress' ),
		bbp_get_spam_status_id()    => _x( 'Spam',    'Spam the topic',      'bbpress' ),
		bbp_get_trash_status_id()   => _x( 'Trash',   'Trash the topic',     'bbpress' ),
		bbp_get_pending_status_id() => _x( 'Pending', 'Unapprove the topic', 'bbpress' )
	), $topic_id );
}

Top ↑

Changelog Changelog

Changelog
Version Description
2.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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