get_all_post_type_supports()WP 3.4.0

Gets all the post type features

No Hooks.

Return

Array. Post type supports list.

Usage

get_all_post_type_supports( $post_type );
$post_type(string) (required)
The post type.

Notes

  • Global. Array. $_wp_post_type_features

Changelog

Since 3.4.0 Introduced.

get_all_post_type_supports() code WP 6.5.2

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