twentythirteen_customize_preview_js

Enqueue Javascript postMessage handlers for the Customizer.

Description

twentythirteen_customize_preview_js(); 

Binds JavaScript handlers to make the Customizer preview reload changes asynchronously.


Usage

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

Defined (1)

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

/functions.php  
  1. function twentythirteen_customize_preview_js() { 
  2. wp_enqueue_script( 'twentythirteen-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '20141120', true );