Astra_Addon_Builder_Customizer::enqueue_customizer_preview_scripts()

Add Customizer preview script.


Description


Source

File: classes/builder/class-astra-addon-builder-customizer.php

	public function enqueue_customizer_preview_scripts() {

		// Base Dynamic CSS.
		wp_enqueue_script(
			'ahfb-addon-base-customizer-preview',
			ASTRA_EXT_URI . 'classes/builder/type/base/assets/js/customizer-preview.js',
			array( 'customize-preview' ),
			ASTRA_EXT_VER,
			true
		);

		// Localize variables for Astra Breakpoints JS.
		wp_localize_script(
			'ahfb-addon-base-customizer-preview',
			'astraBuilderPreview',
			array(
				'tablet_break_point' => astra_addon_get_tablet_breakpoint(),
				'mobile_break_point' => astra_addon_get_mobile_breakpoint(),
			)
		);
	}

Changelog

Changelog
Version Description
3.0.0 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.