函数原型
get_page_statuses(): string[]
函数描述
Retrieves all of the WordPress support page statuses.
是否弃用
未弃用
函数参数
无
函数返回值
string[] Array of page status labels keyed by their status.
函数位置
File: wp-includes/post.php.
函数源码
function get_page_statuses() {
$status = array(
'draft' => __( 'Draft' ),
'private' => __( 'Private' ),
'publish' => __( 'Published' ),
);
return $status;
}
源码链接
变更日志
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |

