Astra_Theme_Update::v_1_5_0_rc_3()

Set Primary Header submenu border color ‘primary-submenu-b-color’ to ‘#eaeaea’ for old users who doesn’t set any color and set the theme color who install the fresh 1.5.0-rc.3 theme.


Description

See also


Return

(void)


Source

File: inc/theme-update/class-astra-theme-update.php

		public static function v_1_5_0_rc_3() {

			$theme_options = get_option( 'astra-settings' );

			// Set the default #eaeaea sub menu border color who doesn't set any color.
			if ( ! isset( $theme_options['primary-submenu-b-color'] ) || empty( $theme_options['primary-submenu-b-color'] ) ) {
				$theme_options['primary-submenu-b-color'] = '#eaeaea';
			}

			// Set the primary sub menu animation to default for existing user.
			if ( ! isset( $theme_options['header-main-submenu-container-animation'] ) ) {
				$theme_options['header-main-submenu-container-animation'] = '';
			}

			update_option( 'astra-settings', $theme_options );

		}

User Contributed Notes

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