get_all_post_type_supports( string $post_type )
Get all the post type features
Description Description
Parameters Parameters
- $post_type
-
(string) (Required) The post type.
Return Return
(array) Post type supports list.
Source 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(); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |
User Contributed Notes User Contributed Notes
You must log in before being able to contribute a note or feedback.
The return value of this function is an associative array, not a list.
For example, if a post type supports the ‘title’ and ‘editor’ features, the return value will be:
It will not be the list: