get_post_statuses()
Retrieve all of the WordPress supported post statuses.检索所有WordPress支持的文章帖子状态。
函数存在文件位置File: wp-includes/post.php 。函数方法如下:
function get_post_statuses() {
$status = array(
'draft' => __( 'Draft' ),
'pending' => __( 'Pending Review' ),
'private' => __( 'Private' ),
'publish' => __( 'Published' ),
);
return $status;
}
腾讯云QCloud
2核2G4M云服务器,新老用户同享年付¥118
域名主机商优惠信息推送QQ群:
665443669
,获取商家优惠推送、禁言。