Astra_Theme_Update::v_1_1_0_beta_4()

Update options of older version than 1.1.0-beta.3.


Description

Container Style Sidebar Grid


Source

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

		public static function v_1_1_0_beta_4() {

			$options = array(
				'woocommerce-content-layout' => 'default',
				'woocommerce-sidebar-layout' => 'default',
				/* Shop */
				'shop-grids'                 => array(
					'desktop' => 3,
					'tablet'  => 2,
					'mobile'  => 1,
				),
				'shop-no-of-products'        => '9',
			);

			$astra_options = get_option( ASTRA_THEME_SETTINGS, array() );

			foreach ( $options as $key => $value ) {
				if ( ! isset( $astra_options[ $key ] ) ) {
					$astra_options[ $key ] = $value;
				}
			}

			update_option( ASTRA_THEME_SETTINGS, $astra_options );
		}

Changelog

Changelog
Version Description
1.1.0-beta.3 Introduced.

User Contributed Notes

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