wp_prepare_themes_for_js

wp_prepare_themes_for_js

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.6.2

apply_filters('wp_prepare_themes_for_js') is found 1 times:

  • /wp-admin/includes/theme.php line 819
    	 * @since 3.8.0
    	 *
    	 * @param array $prepared_themes Array of theme data.
    	 */
    	$prepared_themes = apply_filters( 'wp_prepare_themes_for_js', $prepared_themes );
    	$prepared_themes = array_values( $prepared_themes );
    	return array_filter( $prepared_themes );
    }
    
    /**
     * Prints JS templates for the theme-browsing UI in the Customizer.
    

See this hook used in plugins: