get_all_post_type_supports

函数


get_all_post_type_supports ( $post_type )
参数
  • (string)
    $post_type
    The post type.
    Required:
返回值
  • (array) Post type supports list.
定义位置
  • wp-includes/post.php
    , line 2157
引入
3.4.0
弃用

Gets all the post type features

function get_all_post_type_supports( $post_type ) {
	global $_wp_post_type_features;

	if ( isset( $_wp_post_type_features[ $post_type ] ) ) {
		return $_wp_post_type_features[ $post_type ];
	}

	return array();
}