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

  1. if ( !function_exists( 'get_all_post_type_supports' ) ) { 
  2. require_once ABSPATH . WPINC . '/post.php'; 
  3.  
  4. // The post type. 
  5. $post_type = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = get_all_post_type_supports($post_type); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/post.php  
  1. function get_all_post_type_supports( $post_type ) { 
  2. global $_wp_post_type_features; 
  3.  
  4. if ( isset( $_wp_post_type_features[$post_type] ) ) 
  5. return $_wp_post_type_features[$post_type]; 
  6.  
  7. return array();