wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



get_all_post_type_supports › WordPress Function

Da3.4.0
Deprecaton/a
get_all_post_type_supports ( $post_type )
Parametri:
  • (string) $post_type The post type.
    Richiesto:
Ritorna:
  • (array) Post type supports list.
Definito a:
Codex:

Gets all the post type features



Sorgenti

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