函数原型
get_post_statuses(): string[]
函数描述
Retrieves all of the WordPress supported post statuses.
是否弃用
未弃用
函数参数
无
函数返回值
string[] Array of post status labels keyed by their status.
函数位置
File: wp-includes/post.php.
函数源码
$post_statuses = get_post_statuses();
源码链接
变更日志
Changelog| Version | Description |
|---|
| 2.5.0 | Introduced. |