PHPWind::callback_topic_status( int $status = 2 )

Translate the post status from PHPWind v9.x numerics to WordPress’s strings.


Description Description


Parameters Parameters

$status

(Optional) PHPWind v9.x numeric topic status

Default value: 2


Top ↑

Return Return

(string) WordPress safe


Top ↑

Source Source

File: includes/admin/converters/PHPWind.php

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

			case 2  :
			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.