Astra_Ext_Advanced_Headers_Loader::astra_advanced_headers_design_option( string $option, string $default = '', string $deprecated = '' )
Return Advanced Headers design 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_design_option( $option, $default = '', $deprecated = '' ) { if ( '' != $deprecated ) { $default = $deprecated; } $advanced_headers_options = self::get_advanced_headers_design(); $value = ( isset( $advanced_headers_options[ $option ] ) && '' !== $advanced_headers_options[ $option ] ) ? $advanced_headers_options[ $option ] : $default; return $value; }
Expand full source code Collapse full source code View on Trac