get_post_statuses()

最后更新于:2021-11-26 22:39:24

get_post_statuses()

Retrieve all of the GeChiUI supported post statuses.

响应

(string[]) Array of post status labels keyed by their status.

源文件

文件: gc-includes/post.php

function get_post_statuses() {
	$status = array(
		'draft'   => __( 'Draft' ),
		'pending' => __( 'Pending Review' ),
		'private' => __( 'Private' ),
		'publish' => __( 'Published' ),
	);

	return $status;
}