apply_filters( 'pre_prepare_themes_for_js', array $prepared_themes, null|array $themes, string $current_theme )

Filters theme data before it is prepared for JavaScript.

Description Description

Passing a non-empty array will result in wp_prepare_themes_for_js() returning early with that value instead.

Parameters Parameters


(array) An associative array of theme data. Default empty array.


(null|array) An array of WP_Theme objects to prepare, if any.


(string) The current theme slug.

Top ↑

Source Source

File: wp-admin/includes/theme.php

View on Trac

Top ↑

Changelog Changelog

Version Description
4.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.