Astra_Theme_Extension::preview_init()
Customizer Preview Init
Description
Return
(void)
Source
File: classes/class-astra-theme-extension.php
public function preview_init() {
if ( SCRIPT_DEBUG ) {
$js_path = 'assets/js/unminified/ast-addon-customizer-preview.js';
} else {
$js_path = 'assets/js/minified/ast-addon-customizer-preview.min.js';
}
$addons = Astra_Ext_Extension::get_enabled_addons();
wp_enqueue_script( 'astra-addon-customizer-preview-js', ASTRA_EXT_URI . $js_path, array( 'customize-preview', 'astra-customizer-preview-js' ), ASTRA_EXT_VER, true );
wp_localize_script( 'astra-addon-customizer-preview-js', 'ast_enabled_addons', $addons );
}
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |