Astra_Global_Palette::astra_get_active_global_palette()

Get the key of the selected global color palette.


Description


Return

(string|null) Palette key if found, otherwise null.


Source

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

	public static function astra_get_active_global_palette() {
		$palettes_data   = astra_get_palette_colors();
		$current_palette = isset( $palettes_data['currentPalette'] ) ? $palettes_data['currentPalette'] : 'palette_1';

		/**
		 * Filters the active global palette key.
		 *
		 * @param string $current_palette The active global palette key.
		 *
		 * @return string The filtered active global palette key.
		 * @since 4.10.0
		 */
		return apply_filters( 'astra_get_active_global_palette_key', $current_palette );
	}


User Contributed Notes

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