Astra_Addon_Update::v_1_6_0()
Set Above Header submenu border color ‘above-header-submenu-border-color’ to ‘#eaeaea’ for old users who doesn’t set any color and set the theme color who install the fresh v_1_6_0 plugin.
Description
Return
(void)
Source
File: classes/class-astra-addon-update.php
public static function v_1_6_0() { $theme_options = get_option( 'astra-settings' ); // Set the default #eaeaea sub menu border color who doesn't set any color. if ( ! isset( $theme_options['above-header-submenu-border-color'] ) || empty( $theme_options['above-header-submenu-border-color'] ) ) { $theme_options['above-header-submenu-border-color'] = '#eaeaea'; } // Set above and below header sub menu animation option to default for existing users. if ( ! isset( $theme_options['below-header-submenu-container-animation'] ) || empty( $theme_options['below-header-submenu-container-animation'] ) ) { $theme_options['below-header-submenu-container-animation'] = ''; } if ( ! isset( $theme_options['above-header-submenu-container-animation'] ) ) { $theme_options['above-header-submenu-container-animation'] = ''; } update_option( 'astra-settings', $theme_options ); }
Expand full source code Collapse full source code View on Trac