AEF::callback_topic_status( int $status = 1 )

Translate the post status from AEF v1.0.9 numerics to WordPress’s strings.


Description Description


Parameters Parameters

$status

(Optional) AEF v1.0.9 numeric topic status

Default value: 1


Top ↑

Return Return

(string) WordPress safe


Top ↑

Source Source

File: includes/admin/converters/AEF.php

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

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