customize_register

The WordPress Core customize register hook.

Description

add_action( 'customize_register', (array) $array ); 

Parameters (1)

0. $array (array) => array( __CLASS__, 'customize_register' )
The array.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'customize_register', $array ); 
The following example is for adding a hook callback.
  1. // define the customize_register callback 
  2. function action_customize_register( $array ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'customize_register', 'action_customize_register', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'customize_register', 'action_customize_register', 10, 1 ); 

Defined (10)

The action is defined in the following location(s).

/modules/custom-css/custom-css-4.7.php  
  1. add_action( 'customize_register', array( __CLASS__, 'customize_register' ) ); 
/modules/custom-post-types/portfolios.php  
  1. add_action( 'customize_register', array( $this, 'customize_register' ) ); 
/modules/custom-post-types/testimonial.php  
  1. add_action( 'customize_register', array( $this, 'customize_register' ) ); 
/modules/manage.php  
  1. add_action( 'customize_register', 'add_wpcom_to_allowed_redirect_hosts' ); 
/modules/related-posts/class.related-posts-customize.php  
  1. add_action( 'customize_register', array( $this, 'customize_register' ) ); 
/modules/theme-tools/compat/twentyfourteen.php  
  1. add_action( 'customize_register', 'twentyfourteen_customizer_default' ); 
/modules/theme-tools/content-options/customizer.php  
  1. add_action( 'customize_register', 'jetpack_content_options_customize_register' ); 
/modules/theme-tools/featured-content.php  
  1. add_action( 'customize_register', array( __CLASS__, 'customize_register' ), 9 ); 
/modules/theme-tools/site-logo/inc/class-site-logo.php  
  1. add_action( 'customize_register', array( $this, 'customize_register' ) ); 
/modules/theme-tools/social-links.php  
  1. add_action( 'customize_register', array( $this, 'customize_register' ) );