Filter hook 'all_themes'

in WP Core File wp-admin/includes/class-wp-ms-themes-list-table.php at line 115

View Source

all_themes

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

Hook Information

File Location wp-admin/includes/class-wp-ms-themes-list-table.php View on GitHub
Hook Type Filter
Line Number 115

Hook Parameters

Type Name Description
WP_Theme[] $all Array of WP_Theme objects to display in the list table.

Usage Examples

Basic Usage
<?php
// Hook into all_themes
add_filter('all_themes', 'my_custom_filter', 10, 1);

function my_custom_filter($all) {
    // Your custom filtering logic here
    return $all;
}

Source Code Context

wp-admin/includes/class-wp-ms-themes-list-table.php:115 - How this hook is used in WordPress core
<?php
 110  			 *
 111  			 * @since 3.1.0
 112  			 *
 113  			 * @param WP_Theme[] $all Array of WP_Theme objects to display in the list table.
 114  			 */
 115  			'all'      => apply_filters( 'all_themes', wp_get_themes() ),
 116  			'search'   => array(),
 117  			'enabled'  => array(),
 118  			'disabled' => array(),
 119  			'upgrade'  => array(),
 120  			'broken'   => $this->is_site_themes ? array() : wp_get_themes( array( 'errors' => true ) ),

PHP Documentation

<?php
/**
			 * Filters the full array of WP_Theme objects to list in the Multisite
			 * themes list table.
			 *
			 * @since 3.1.0
			 *
			 * @param WP_Theme[] $all Array of WP_Theme objects to display in the list table.
			 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-admin/includes/class-wp-ms-themes-list-table.php
Related Hooks

Related hooks will be displayed here in future updates.