首页 WordPress函数大全 get_post_stati()

get_post_stati()

2020-05-01 / 5193阅 / 悠然

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

get_post_stati( array|string $args = array(), string $output = 'names', string $operator = 'and' )

Get a list of post statuses.

描述

See also See also

  • register_post_status()

Top ↑

参数

$args

(array|string)
(Optional)
Array or string of post status arguments to compare against properties of the global $wp_post_statuses objects.

Default value: array()

$output

(string)
(Optional)
The type of output to return, either 'names' or 'objects'.

Default value: 'names'

$operator

(string)
(Optional)
The logical operation to perform. 'or' means>Default value: 'and'

返回

(array) A list of post status names or objects.

大家谈论
    我的见解