do_action( ‘customize_controls_enqueue_scripts’ )

Fires when enqueuing Customizer control scripts.

More Information

customize_controls_enqueue_scripts is an action hook triggered after the WP Theme Customizer after customize_controls_init was called, its actions/callbacks executed, and its own styles and scripts enqueued, so you can use this hook to register your own scripts and styles for WP Theme Customizer.

This action hook doesn’t have parameters.


do_action( 'customize_controls_enqueue_scripts' );



User Contributed Notes

  1. Skip to note 2 content
     * Enqueue script for custom customize control.
    function custom_customize_enqueue() {
    	wp_enqueue_script( 'custom-customize', get_template_directory_uri() . '/js/custom.customize.js', array( 'jquery', 'customize-controls' ), false, true );
    add_action( 'customize_controls_enqueue_scripts', 'custom_customize_enqueue' );

You must log in before being able to contribute a note or feedback.