install_themes_feature_list() – Retrieve list of WordPress theme features (aka theme tags).

You appear to be a bot. Output may be restricted

Description

Retrieves the list of WordPress theme features (aka theme tags).

Usage

$array = install_themes_feature_list();

Parameters

Returns

array

Source

File name: wordpress/wp-admin/includes/theme-install.php
Lines:

1 to 21 of 21
function install_themes_feature_list() {
  _deprecated_function( install_themes_feature_list, '3.1.0', 'get_theme_feature_list()' );

  $cache = get_transient( 'wporg_theme_feature_list' );
  if ( ! $cache ) {
    set_transient( 'wporg_theme_feature_list', array(), 3 * HOUR_IN_SECONDS );
  }

  if ( $cache ) {
    return $cache;
  }

  $feature_list = themes_api( 'feature_list', array() );
  if ( is_wp_error( $feature_list ) ) {
    return array();
  }

  set_transient( 'wporg_theme_feature_list', $feature_list, 3 * HOUR_IN_SECONDS );

  return $feature_list;
}
 

 View on GitHub View on Trac