install_themes_updated

Definition:
function install_themes_updated($page = 1) {}

Display recently updated themes.

Parameters

  • string $page

Source code

function install_themes_updated($page = 1) {

	global $theme_field_defaults;

	$args = array('browse' => 'updated', 'page' => $page, 'fields' => $theme_field_defaults);

	$api = themes_api('query_themes', $args);

	display_themes($api->themes, $api->info['page'], $api->info['pages']);

}

2059

install_themes_new

Definition:
function install_themes_new($page = 1) {}

Display new themes/

Parameters

  • string $page

Source code

function install_themes_new($page = 1) {

	global $theme_field_defaults;

	$args = array('browse' => 'new', 'page' => $page, 'fields' => $theme_field_defaults);

	$api = themes_api('query_themes', $args);

	if ( is_wp_error($api) )

		wp_die($api);

	display_themes($api->themes, $api->info['page'], $api->info['pages']);

}

2057

install_themes_feature_list

Definition:
function install_themes_feature_list( ) {}

Retrieve list of WordPress theme features (aka theme tags)

Source code

function install_themes_feature_list( ) {

	if ( !$cache = get_transient( 'wporg_theme_feature_list' ) )

		set_transient( 'wporg_theme_feature_list', array( ),  10800);



	if ( $cache  )

		return $cache;



	$feature_list = themes_api( 'feature_list', array( ) );

	if ( is_wp_error( $feature_list ) )

		return $features;



	set_transient( 'wporg_theme_feature_list', $feature_list, 10800 );



	return $feature_list;

}

2055

install_themes_featured

Definition:
function install_themes_featured($page = 1) {}

Display featured themes.

Parameters

  • string $page

Source code

function install_themes_featured($page = 1) {

	global $theme_field_defaults;

	$args = array('browse' => 'featured', 'page' => $page, 'fields' => $theme_field_defaults);

	$api = themes_api('query_themes', $args);

	if ( is_wp_error($api) )

		wp_die($api);

	display_themes($api->themes, $api->info['page'], $api->info['pages']);

}

2053

install_themes_dashboard

Definition:
function install_themes_dashboard() {}

Display tags filter for themes.

Source code

function install_themes_dashboard() {

	install_theme_search_form();

?>

<h4><?php _e('Feature Filter') ?></h4>

<form method="post" action="<?php echo self_admin_url( 'theme-install.php?tab=search' ); ?>">

<p class="install-help"><?php _e('Find a theme based on specific features') ?></p>

	<?php

	$feature_list = get_theme_feature_list( );

	echo '<div class="feature-filter">';



	foreach ( (array) $feature_list as $feature_name => $features ) {

		$feature_name = esc_html( $feature_name );

		echo '<div class="feature-name">' . $feature_name . '</div>';



		echo '<ol class="feature-group">';

		foreach ( $features as $feature => $feature_name ) {

			$feature_name = esc_html( $feature_name );

			$feature = esc_attr($feature);

?>



<li>

	<input type="checkbox" name="features[<?php echo $feature; ?>]" id="feature-id-<?php echo $feature; ?>" value="<?php echo $feature; ?>" />

	<label for="feature-id-<?php echo $feature; ?>"><?php echo $feature_name; ?></label>

</li>



<?php	} ?>

</ol>

<br class="clear" />

<?php

	} ?>



</div>

<br class="clear" />

<?php submit_button( __( 'Find Themes' ), 'button', 'search' ); ?>

</form>

<?php

}

2051