Astra_Customizer::prepare_javascript_panel_configs( array $config )

Prepare Panel Configs for Javascript.


Description


Parameters

$config

(array) (Required) configs.


Source

File: inc/customizer/class-astra-customizer.php

		public function prepare_javascript_panel_configs( $config ) {

			$panel_name = astra_get_prop( $config, 'name' );

			unset( $config['type'] );
			$config['type']                            = 'ast_panel';
			$config['active']                          = true;
			$config['id']                              = $panel_name;
			self::$js_configs['panels'][ $panel_name ] = $config;
		}

Changelog

Changelog
Version Description
3.0.0 Introduced.


User Contributed Notes

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