get_all_post_type_supports( string $post_type )

Get all the post type features


Description


Parameters

$post_type

(string) (Required) The post type.


Top ↑

Return

(array) Post type supports list.


Top ↑

Source

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

Top ↑

Changelog

Version Description
3.4.0 Introduced.