wpseek.com
A WordPress-centric search engine for devs and theme authors



get_all_post_type_supports › WordPress Function

Since3.4.0
Deprecatedn/a
get_all_post_type_supports ( $post_type )
Parameters:
  • (string) $post_type The post type.
    Required: Yes
Returns:
  • (array) Post type supports list.
Defined at:
Codex:

Gets all the post type features



Source

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();
}