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.


Top ↑

Source

File: wp-admin/customize.php. View all references

do_action( 'customize_controls_enqueue_scripts' );

Top ↑

Changelog

Changelog
Version Description
3.4.0 Introduced.

Top ↑

User Contributed Notes

  1. Skip to note 1 content
    Contributed by Collins Mbaka
    /**
     * 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.