wpseek.com
WordPress开发者和主题制作者的搜索引擎



get_all_post_type_supports › WordPress Function

Since3.4.0
已弃用n/a
get_all_post_type_supports ( $post_type )
参数:
  • (string) $post_type The post type.
    Required: Yes
返回:
  • (array) Post type supports list.
定义在:
文档:

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();
}