XenForo::callback_status( int $status = 1 )

Translate the post status from XenForo to WordPress’ strings.


Description Description


Parameters Parameters

$status

(Optional) XenForo post status

Default value: 1


Top ↑

Return Return

(string) WordPress safe


Top ↑

Source Source

File: includes/admin/converters/XenForo.php

	public function callback_status( $status = 1 ) {
		switch ( $status ) {
			case 'deleted' :
				$status = 'pending'; // bbp_get_pending_status_id()
				break;

			case 'visible'  :
			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.