jetpack_widgets_customizer_assets_preview

Enqueue utilities to work with widgets in Customizer.

Description

jetpack_widgets_customizer_assets_preview(); 

Usage

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

Defined (1)

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

/modules/widgets.php  
  1. function jetpack_widgets_customizer_assets_preview() { 
  2. wp_enqueue_script( 'jetpack-customizer-widget-utils', plugins_url( '/widgets/customizer-utils.js', __FILE__ ), array( 'customize-base' ) );