Un motore di ricerca WordPress per sviluppatori e autori di temi



get_post_statuses ›

Da2.5.0
Deprecaton/a
get_post_statuses ( Nessun parametro )
Ritorna:
  • (array) List of post statuses.
Definito a:
Codex:

Retrieve all of the WordPress supported post statuses.

Posts have a limited set of valid status values, this provides the post_status values and descriptions.



Sorgenti

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

	return $status;
}