bbPress1::callback_topic_status( int $topic_status = 1 )

Translate the topic status from bbPress 1’s numerics to WordPress’s strings.


Description Description


Parameters Parameters

$topic_status

(Optional) bbPress 1.x numeric status

Default value: 1


Top ↑

Return Return

(string) WordPress safe


Top ↑

Source Source

File: includes/admin/converters/bbPress1.php

	public function callback_topic_status( $topic_status = 1 ) {
		switch ( $topic_status ) {
			case 0 :
				$topic_status = 'closed';  // bbp_get_closed_status_id()
				break;

			case 1 :
				default :
				$topic_status = 'publish'; // bbp_get_public_status_id()
				break;
		}
		return $topic_status;
	}

Top ↑

User Contributed Notes User Contributed Notes

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