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 . ';' ); }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.2.1 | Introduced. |