all_themes
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 | Введена. |
Где вызывается хук
all_themes
wp-admin/includes/class-wp-ms-themes-list-table.php 115
'all' => apply_filters( 'all_themes', wp_get_themes() ),