wp_prepare_themes_for_js filter-hook . WP 3.8.0
Filters the themes prepared for JavaScript, for themes.php.
Could be useful for changing the order, which is by name by default.
Usage
add_filter( 'wp_prepare_themes_for_js', 'filter_function_name_4746' ); function filter_function_name_4746( $prepared_themes ){ // filter... return $prepared_themes; }
- $prepared_themes(array)
- Array of themes.
Where the hook is called
wp_prepare_themes_for_js
wp-admin/includes/theme.php 621
$prepared_themes = apply_filters( 'wp_prepare_themes_for_js', $prepared_themes );