all_themes хук-фильтрWP 3.1.0

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

Использование

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.

Список изменений

С версии 3.1.0 Введена.

Где вызывается хук

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

Где используется хук в WordPress

Использование не найдено.