WPDev.one
Core Function
View Source on Trac ↗

wp_prepare_themes_for_js()

wp_prepare_themes_for_js( mixed $themes = null )

Prepares themes for JavaScript.

Parameters 1 required

Name / Type Description
WP_Theme[]

$themes Optional. Array of theme objects to prepare. Defaults to all allowed themes.

Required

Return Value

(array)
An associative array of theme data, sorted by name.

Function Information

Since Version
3.8.0
Source File
wp-admin/includes/theme.php
Advertisement