customize_register
Fires once WordPress has loaded, allowing scripts and styles to be initialized.
Использование
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.
Список изменений
С версии 3.4.0 | Введена. |
Где вызывается хук
customize_register
customize_register
wp-includes/class-wp-customize-manager.php 947
do_action( 'customize_register', $this );
wp-includes/theme.php 3683
do_action( 'customize_register', $wp_customize );
Где используется хук в WordPress
wp-includes/class-wp-customize-manager.php 1643
add_action( 'customize_register', array( $this, '_save_starter_content_changeset' ), 1000 );
wp-includes/class-wp-customize-manager.php 394
add_action( 'customize_register', array( $this, 'register_controls' ) );
wp-includes/class-wp-customize-manager.php 395
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 3679
remove_action( 'customize_register', array( $wp_customize, 'register_controls' ) );