pre_prepare_themes_for_js

SummerySummery

Filters theme data before it is prepared for JavaScript.

Syntax

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

DescriptionDescription

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

ParametersParameters

$prepared_themes

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

$themes

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

$current_theme

(string) The current theme slug.

SourceSource

File: wp-admin/includes/theme.php

ChangelogChangelog

Changelog
Version Description
4.2.0 Introduced.
Scroll to Top