wp_prepare_themes_for_js WordPress Filter Hook

The wp_prepare_themes_for_js hook is used to prepare themes for JavaScript manipulation. This hook is typically used to add data to a theme's JSON object, which can then be accessed and manipulated by a JavaScript file.

apply_filters( 'wp_prepare_themes_for_js', array $prepared_themes ) #

Filters the themes prepared for JavaScript, for themes.php.


Description

Could be useful for changing the order, which is by name by default.


Top ↑

Parameters

$prepared_themes

(array)Array of theme data.


Top ↑

Source

File: wp-admin/includes/theme.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.