WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Difference between revisions of "Plugin API/Action Reference/customize controls print scripts"

(Stubbed in page (copied mostly from customize_controls_print_styles))
 
(No difference)

Latest revision as of 14:36, 23 January 2013

Description

The customize_controls_print_scripts action hook is triggered within the <head></head> 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.

<?php
add_action('customize_controls_print_scripts', 'your_function');
?>

See Theme Customization API and Plugin API - Actions for more detail.

Related