Astra_Ext_Advanced_Headers_Loader::astra_advanced_headers_layout_option( string $option, string $default = '', string $deprecated = '' )

Return Advanced Headers layout options.


Description


Parameters

$option

(string) (Required) Option key.

$default

(string) (Optional) Option default value.

Default value: ''

$deprecated

(string) (Optional) Option default value.

Default value: ''


Return

(string) Return option value.


Source

File: addons/advanced-headers/classes/class-astra-ext-advanced-headers-loader.php

		public static function astra_advanced_headers_layout_option( $option, $default = '', $deprecated = '' ) {

			if ( '' != $deprecated ) {
				$default = $deprecated;
			}

			$advanced_headers_options = self::get_advanced_headers_layout();
			if ( ! $advanced_headers_options ) {
				return false;
			}
			$value = ( isset( $advanced_headers_options[ $option ] ) && '' !== $advanced_headers_options[ $option ] ) ? $advanced_headers_options[ $option ] : $default;

			return $value;
		}


User Contributed Notes

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