bbPress1::callback_status( int $status )

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


Description Description


Parameters Parameters

$status

(Required) bbPress 1.x numeric post status


Top ↑

Return Return

(string) WordPress safe


Top ↑

Source Source

File: includes/admin/converters/bbPress1.php

	public function callback_status( $status = 0 ) {
		switch ( $status ) {
			case 2 :
				$status = 'spam';    // bbp_get_spam_status_id()
				break;

			case 1 :
				$status = 'trash';   // bbp_get_trash_status_id()
				break;

			case 0  :
			default :
				$status = 'publish'; // bbp_get_public_status_id()
				break;
		}
		return $status;
	}

Top ↑

User Contributed Notes User Contributed Notes

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