This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Astra_Customizer::get_default_value( string $setting_key, array $default_values )

Get control default.


Description


Parameters

$setting_key

(string) (Required) setting key.

$default_values

(array) (Required) default value array.


Return

(mixed|string)


Source

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

		private function get_default_value( $setting_key, $default_values ) {
			$return = '';
			preg_match( '#astra-settings\[(.*?)\]#', $setting_key, $match );
			if ( ! empty( $match ) && isset( $match[1] ) ) {
				$return = isset( $default_values[ $match[1] ] ) ? $default_values[ $match[1] ] : '';
			}
			return $return;
		}


User Contributed Notes

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