WordPress at Your Fingertips
function is not described

install_popular_tags() WP 2.7.0

Retrieve popular WordPress plugin tags.

No Hooks.

Return

Array|WP_Error.

Usage

install_popular_tags( $args );
$args(array)
-
Default: array()

Changelog

Since 2.7.0 Introduced.

Code of install_popular_tags() WP 5.8.2

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;
}