get_all_post_type_supports()
get_all_post_type_supports( string $post_type )
获取所有post类型功能
Get all the post type features
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$post_type | (string) | 必需 | 职位类型。 |
返回(Return)
(array)Post类型支持列表。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.4.0 | wp-includes/post.php:1892 | 2 | 0 |
笔记(Notes)
此函数的返回值是关联数组,而不是列表。
get_all_post_type_supports() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_all_post_type_supports/