WPDev.one
Core Function
View Source on Trac ↗

get_post_status_object()

get_post_status_object( mixed $post_status )

Retrieves a post status object by name.

Parameters 1 required

Name / Type Description
$post_status
string

The name of a registered post status.

Required

Return Value

((stdClass)
| null) A post status object.

Function Information

Since Version
3.0.0
Source File
wp-includes/post.php
Advertisement