get_all_post_type_supports() WP 3.4.0
Get 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. |
Code of get_all_post_type_supports() get all post type supports WP 5.7
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();
}