首页 WordPress函数大全 get_post_types_by_support()

get_post_types_by_support()

2020-05-01 / 2950阅 / 悠然

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

get_post_types_by_support( array|string $feature, string $operator = 'and' )

Retrieves a list of post type names that support a specific feature.

描述

参数

$feature

(array|string)
(Required)
Single feature or an array of features the post types should support.

$operator

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

返回

(string[]) A list of post type names.

大家谈论
    我的见解