twentyeleven_customize_preview_js

Bind JS handlers to make Customizer preview reload changes asynchronously.

Description

twentyeleven_customize_preview_js(); 

Used with blogname and blogdescription.


Usage

  1. if ( !function_exists( 'twentyeleven_customize_preview_js' ) ) { 
  2. require_once '/inc/theme-options.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = twentyeleven_customize_preview_js(); 
  7.  

Defined (1)

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

/inc/theme-options.php  
  1. function twentyeleven_customize_preview_js() { 
  2. wp_enqueue_script( 'twentyeleven-customizer', get_template_directory_uri() . '/inc/theme-customizer.js', array( 'customize-preview' ), '20150401', true );