wphooks.info - wp_prepare_themes_for_js

wp_prepare_themes_for_js

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-admin/includes/theme.php:
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
	/**
	 * Filters the themes prepared for JavaScript, for themes.php.
	 *
	 * Could be useful for changing the order, which is by name by default.
	 *
	 * @since 3.8.0
	 *
	 * @param array $prepared_themes Array of themes.
	 */
	$prepared_themes = apply_filters( 'wp_prepare_themes_for_js', $prepared_themes );
	$prepared_themes = array_values( $prepared_themes );
	return array_filter( $prepared_themes );
}

/**
 * Print JS templates for the theme-browsing UI in the Customizer.
 *
 * @since 4.2.0
 */