wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



get_post_status_object › WordPress Function

Od3.0.0
Przestarzałyn/a
get_post_status_object ( $post_status )
Parametry:
  • (string) $post_status The name of a registered post status.
    Wymagane: Tak
Zobacz:
Powrót:
  • (stdClass|null) A post status object.
Zdefiniowane na:
Codex:

Retrieves a post status object by name.



Źródło

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 ];
}