WordPress at a glance
function is not described

get_post_status_object() WP 3.0.0

Retrieve a post status object by name.

  • Global. Array. $wp_post_statuses List of post statuses.
  • See: register_post_status()

No Hooks.

Return

Object/null. A post status object.

Usage

get_post_status_object( $post_status );
$post_status(string) (required)
The name of a registered post status.

Code of get post status object: wp-includes/post.php VER 5.1.1

<?php
function get_post_status_object( $post_status ) {
	global $wp_post_statuses;

	if ( empty( $wp_post_statuses[ $post_status ] ) ) {
		return null;
	}

	return $wp_post_statuses[ $post_status ];
}