get_available_post_statuses()
get_available_post_statuses( string $type = ‘post’ )
获取post-u类型的所有可能状态
Get all the possible statuses for a post_type
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$type | (string) | 可选 | 您想要状态的post_类型。 |
返回(Return)
(string[])提供的post类型的所有状态的数组。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.5.0 | wp-admin/includes/post.php:1091 | 1 function | 1 function |
get_available_post_statuses() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_available_post_statuses/