get_post_status_object()
get_post_status_object( string $post_status )
按名称检索post status对象。
Retrieve a post status object by name.
说明(Description)
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$post_status | (string) | 必需 | 注册职位状态的名称。 |
返回(Return)
(object|null)post status对象。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.0.0 | wp-includes/post.php:1133 | 15 | 0 |
get_post_status_object() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_post_status_object/