get_all_post_type_supports

The timeline below displays how wordpress function get_all_post_type_supports has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.1

/**
 * Gets all the post type features
 *
 * @since 3.4.0
 *
 * @global array $_wp_post_type_features
 *
 * @param string $post_type The post type.
 * @return array Post type supports list.
 */
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();
}

WordPress Version: 4.3

/**
 * Get all the post type features
 *
 * @since 3.4.0
 *
 * @global array $_wp_post_type_features
 *
 * @param string $post_type The post type.
 * @return array Post type supports list.
 */
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();
}

WordPress Version: 4.0

/**
 * Get all the post type features
 *
 * @since 3.4.0
 *
 * @param string $post_type The post type.
 * @return array Post type supports list.
 */
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();
}

WordPress Version: 3.7

/**
 * Get all the post type features
 *
 * @since 3.4.0
 * @param string $post_type The post type
 * @return array
 */
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();
}