customize_controls_print_scripts WordPress Action Hook

The customize_controls_print_scripts hook is used to enqueue scripts for the customizer controls screen. This hook is only fired if the current user has the 'customize' capability.

do_action( 'customize_controls_print_scripts' ) #

Fires when Customizer control scripts are printed.


More Information

The customize_controls_print_scripts action hook is triggered within the section of the theme customizer screen. By default, the function print_head_scripts() is added to this action with a priority of 20.

This hook functions similarly to the wp_head action hook, but only affects the theme customizer screen. Generally, when using the Theme Customization API, you are better off hooking into wp_head instead.


Top ↑

Source

File: wp-admin/customize.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
3.4.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.