Astra_Theme_Update::v_1_5_1()

Change the Primary submenu option to be checkbpx rather than border selection.


Description


Return

(void)


Source

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

		public static function v_1_5_1() {
			$theme_options               = get_option( 'astra-settings', array() );
			$primary_submenu_otem_border = isset( $theme_options['primary-submenu-item-border'] ) ? $theme_options['primary-submenu-item-border'] : array();

			if ( is_array( $primary_submenu_otem_border ) && '0' != $primary_submenu_otem_border['bottom'] ) {
				$theme_options['primary-submenu-item-border'] = 1;
			} else {
				$theme_options['primary-submenu-item-border'] = 0;
			}
			if ( isset( $theme_options['primary-submenu-b-color'] ) && ! empty( $theme_options['primary-submenu-b-color'] ) ) {
				$theme_options['primary-submenu-item-b-color'] = $theme_options['primary-submenu-b-color'];
			}

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

User Contributed Notes

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