install_themes_feature_list

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

Description

(array) install_themes_feature_list(); 

Returns (array)


Usage

  1. if ( !function_exists( 'install_themes_feature_list' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/theme-install.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = install_themes_feature_list(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/theme-install.php  
  1. function install_themes_feature_list() { 
  2. _deprecated_function( __FUNCTION__, '3.1.0', 'get_theme_feature_list()' ); 
  3.  
  4. if ( !$cache = get_transient( 'wporg_theme_feature_list' ) ) 
  5. set_transient( 'wporg_theme_feature_list', array(), 3 * HOUR_IN_SECONDS ); 
  6.  
  7. if ( $cache ) 
  8. return $cache; 
  9.  
  10. $feature_list = themes_api( 'feature_list', array() ); 
  11. if ( is_wp_error( $feature_list ) ) 
  12. return array(); 
  13.  
  14. set_transient( 'wporg_theme_feature_list', $feature_list, 3 * HOUR_IN_SECONDS ); 
  15.  
  16. return $feature_list;