WordPress Version: 6.1
/**
* Gets all the post type features
*
* @since 3.4.0
*
* @global array $_wp_post_type_features
*
* @param string $post_type The post type.
* @return array Post type supports list.
*/
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();
}