customize_controls_init
Fires when Customizer controls are initialized, before scripts are enqueued.
Usage
add_action( 'customize_controls_init', 'wp_kama_customize_controls_init_action' ); /** * Function for `customize_controls_init` action-hook. * * @return void */ function wp_kama_customize_controls_init_action(){ // action... }
Changelog
Since 3.4.0 | Introduced. |
Where the hook is called
In file: /wp-admin/customize.php
customize_controls_init
wp-admin/customize.php 116
do_action( 'customize_controls_init' );
Where the hook is used in WordPress
wp-includes/class-wp-customize-manager.php 396
add_action( 'customize_controls_init', array( $this, 'prepare_controls' ) );
wp-includes/class-wp-customize-widgets.php 114
add_action( 'customize_controls_init', array( $this, 'customize_controls_init' ) );