all_themes
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
all_themes
wp-admin/includes/class-wp-ms-themes-list-table.php 121
'all' => apply_filters( 'all_themes', wp_get_themes() ),