Astra_Theme_Update::v_1_0_14()

Update options of older version than 1.0.14.


Description


Return

(void)


Source

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

		public static function v_1_0_14() {

			$options = array(
				'footer-sml-divider'          => '4',
				'footer-sml-divider-color'    => '#fff',
				'footer-adv'                  => 'layout-4',
				'single-page-sidebar-layout'  => 'no-sidebar',
				'single-post-sidebar-layout'  => 'right-sidebar',
				'archive-post-sidebar-layout' => 'right-sidebar',
			);

			$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 );

			update_option( '_astra_pb_compatibility_offset', 1 );
			update_option( '_astra_pb_compatibility_time', gmdate( 'Y-m-d H:i:s' ) );
		}

Changelog

Changelog
Version Description
1.0.14 Introduced.

User Contributed Notes

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