Astra_Global_Palette::localize_variables( array $object )

Localize variables used in the customizer.


Description


Parameters

$object

(array) (Required) localize object.


Return

(array<array-key,) mixed> $object localize object.


Source

File: inc/class-astra-global-palette.php

	public function localize_variables( $object ) {

		if ( isset( $object['customizer'] ) ) {
			$object['customizer']['globalPaletteStylePrefix'] = self::get_css_variable_prefix();
			$object['customizer']['isElementorActive']        = astra_is_elemetor_active();
			$object['customizer']['globalPaletteSlugs']       = self::get_palette_slugs();
			$object['customizer']['globalPaletteLabels']      = self::get_palette_labels();
		}
		return $object;
	}

Changelog

Changelog
Version Description
3.7.0 Introduced.


User Contributed Notes

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