get_all_post_type_supports()
Gets all the post type features
No Hooks.
Returns
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() get all post type supports code WP 7.0
function get_all_post_type_supports( $post_type ) {
global $_wp_post_type_features;
return $_wp_post_type_features[ $post_type ] ?? array();
}