customize_controls_print_footer_scripts

The WordPress Core customize controls print footer scripts hook.

Description

add_action( 'customize_controls_print_footer_scripts', (string) $wp_footer_scripts ); 

Parameters (1)

0. $wp_footer_scripts (string) => '_wp_footer_scripts'
The wp footer scripts.

Usage

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

Defined (12)

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

/wp-admin/customize.php  
  1. add_action( 'customize_controls_print_footer_scripts', '_wp_footer_scripts' ); 
  1. do_action( 'customize_controls_print_footer_scripts' ); 
/wp-admin/includes/admin-filters.php  
  1. add_action( 'customize_controls_print_footer_scripts', 'customize_themes_print_templates' ); 
/wp-includes/class-wp-customize-nav-menus.php  
  1. add_action( 'customize_controls_print_footer_scripts', array( $this, 'print_templates' ) ); 
  1. add_action( 'customize_controls_print_footer_scripts', array( $this, 'available_items_template' ) ); 
/wp-includes/class-wp-customize-widgets.php  
  1. add_action( 'customize_controls_print_footer_scripts', array( $this, 'print_footer_scripts' ) ); 
  1. add_action( 'customize_controls_print_footer_scripts', array( $this, 'output_widget_control_templates' ) ); 
/wp-includes/class-wp-customize-manager.php  
  1. add_action( 'customize_controls_print_footer_scripts', array( $this, 'render_panel_templates' ), 1 ); 
  1. add_action( 'customize_controls_print_footer_scripts', array( $this, 'render_section_templates' ), 1 ); 
  1. add_action( 'customize_controls_print_footer_scripts', array( $this, 'render_control_templates' ), 1 ); 
  1. add_action( 'customize_controls_print_footer_scripts', array( $this, 'customize_pane_settings' ), 1000 ); 
/wp-includes/media.php  
  1. add_action( 'customize_controls_print_footer_scripts', 'wp_print_media_templates' );