install_popular_tags() – Retrieve popular WordPress plugin tags.
You appear to be a bot. Output may be restricted
Description
Retrieves popular WordPress plugin tags.
Usage
$array|WP_Error = install_popular_tags( $args );
Parameters
- $args
- ( array ) optional –
Returns
array|WP_Error
Source
File name: wordpress/wp-admin/includes/plugin-install.php
Lines:
1 to 17 of 17
function install_popular_tags( $args = array() ) { $key = md5( serialize( $args ) ); $tags = get_site_transient( 'poptags_' . $key ); if ( false !== $tags ) { return $tags; } $tags = plugins_api( 'hot_tags', $args ); if ( is_wp_error( $tags ) ) { return $tags; } set_site_transient( 'poptags_' . $key, $tags, 3 * HOUR_IN_SECONDS ); return $tags; }