XMB::callback_topic_status( int $status = '' )

Translate the post status from XMB v1.9.11.13 numerics to WordPress’s strings.


Description Description


Parameters Parameters

$status

(Optional) XMB v1.9.11.13 numeric topic status

Default value: ''


Top ↑

Return Return

(string) WordPress safe


Top ↑

Source Source

File: includes/admin/converters/XMB.php

	public function callback_topic_status( $status = '' ) {
		switch ( $status ) {
			case 'yes' :
				$status = 'closed';
				break;

			case ''  :
			default :
				$status = 'publish';
				break;
		}
		return $status;
	}

Top ↑

User Contributed Notes User Contributed Notes

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