twentyfifteen_customize_preview_js

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

Description

twentyfifteen_customize_preview_js(); 

Usage

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

Defined (1)

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

/inc/customizer.php  
  1. function twentyfifteen_customize_preview_js() { 
  2. wp_enqueue_script( 'twentyfifteen-customize-preview', get_template_directory_uri() . '/js/customize-preview.js', array( 'customize-preview' ), '20141216', true );