pre_prepare_themes_for_js

pre_prepare_themes_for_js

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('pre_prepare_themes_for_js') is found 1 times:

  • /wp-admin/includes/theme.php line 668
    	 * @param array           $prepared_themes An associative array of theme data. Default empty array.
    	 * @param WP_Theme[]|null $themes          An array of theme objects to prepare, if any.
    	 * @param string          $current_theme   The active theme slug.
    	 */
    	$prepared_themes = (array) apply_filters( 'pre_prepare_themes_for_js', array(), $themes, $current_theme );
    
    	if ( ! empty( $prepared_themes ) ) {
    		return $prepared_themes;
    	}
    
    	// Make sure the active theme is listed first.