pre_prepare_themes_for_js

Advertisement

Summery Summery

Filters theme data before it is prepared for JavaScript.

Syntax Syntax

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

Description Description

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

Parameters Parameters

$prepared_themes

An associative array of theme data. Default empty array.

$themes

An array of theme objects to prepare, if any.

$current_theme

The current theme slug.

Source Source

File: wp-admin/includes/theme.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.2.0 Introduced.

Advertisement

Leave a Reply