首页 WordPress函数大全 get_available_post_statuses()

get_available_post_statuses()

2020-05-01 / 3030阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

get_available_post_statuses( string $type = 'post' )

Get all the possible statuses for a post_type

描述

参数

$type

(string)
(Optional)
The post_type you want the statuses for.

Default value: 'post'

返回

(string[]) An array of all the statuses for the supplied post type.

大家谈论
    我的见解