get_all_post_type_supports
Get all the post type features.
Description
(array) get_all_post_type_supports( (string) $post_type );
Returns (array)
Post type supports list.
Parameters (1)
- 0. $post_type (string)
- The post type.
Usage
if ( !function_exists( 'get_all_post_type_supports' ) ) { require_once ABSPATH . WPINC . '/post.php'; } // The post type. $post_type = ''; // NOTICE! Understand what this does before running. $result = get_all_post_type_supports($post_type);
Defined (1)
The function is defined in the following location(s).
- /wp-includes/post.php
- 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();
- }