all_themes filter-hookWP 3.1.0

Filters the full array of WP_Theme objects to list in the Multisite themes list table.

Usage

add_filter( 'all_themes', 'wp_kama_all_themes_filter' );

/**
 * Function for `all_themes` filter-hook.
 * 
 * @param WP_Theme[] $all Array of WP_Theme objects to display in the list table.
 *
 * @return WP_Theme[]
 */
function wp_kama_all_themes_filter( $all ){

	// filter...
	return $all;
}
$all(WP_Theme[])
Array of WP_Theme objects to display in the list table.

Changelog

Since 3.1.0 Introduced.

Where the hook is called

WP_MS_Themes_List_Table::prepare_items()
all_themes
wp-admin/includes/class-wp-ms-themes-list-table.php 114
'all'      => apply_filters( 'all_themes', wp_get_themes() ),

Where the hook is used in WordPress

Usage not found.