Astra_Admin_Settings::customizer_scripts()

Load the scripts and styles in the customizer controls.


Description


Source

File: inc/core/class-astra-admin-settings.php

		public static function customizer_scripts() {
			$color_palettes = wp_json_encode( astra_color_palette() );
			wp_add_inline_script( 'wp-color-picker', 'jQuery.wp.wpColorPicker.prototype.options.palettes = ' . $color_palettes . ';' );
		}

Changelog

Changelog
Version Description
1.2.1 Introduced.

User Contributed Notes

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