customize_register
Fires once WordPress has loaded, allowing scripts and styles to be initialized.
Usage
add_action( 'customize_register', 'wp_kama_customize_register_action' ); /** * Function for `customize_register` action-hook. * * @param WP_Customize_Manager $manager WP_Customize_Manager instance. * * @return void */ function wp_kama_customize_register_action( $manager ){ // action... }
- $manager(WP_Customize_Manager)
- WP_Customize_Manager instance.
Changelog
Since 3.4.0 | Introduced. |
Where the hook is called
customize_register
customize_register
wp-includes/class-wp-customize-manager.php 942
do_action( 'customize_register', $this );
wp-includes/theme.php 3635
do_action( 'customize_register', $wp_customize );
Where the hook is used in WordPress
wp-includes/class-wp-customize-manager.php 1638
add_action( 'customize_register', array( $this, '_save_starter_content_changeset' ), 1000 );
wp-includes/class-wp-customize-manager.php 389
add_action( 'customize_register', array( $this, 'register_controls' ) );
wp-includes/class-wp-customize-manager.php 390
add_action( 'customize_register', array( $this, 'register_dynamic_settings' ), 11 ); // Allow code to create settings first.
wp-includes/class-wp-customize-nav-menus.php 50
add_action( 'customize_register', array( $this, 'customize_register' ), 11 );
wp-includes/class-wp-customize-widgets.php 106
add_action( 'customize_register', array( $this, 'schedule_customize_register' ), 1 );
wp-includes/theme.php 3631
remove_action( 'customize_register', array( $wp_customize, 'register_controls' ) );