Astra_Edd::edd_set_defaults_initialization()

Disable EDD style only for the first time


Description


Return

(void)


Source

File: inc/compatibility/edd/class-astra-edd.php

		public function edd_set_defaults_initialization() {

			$astra_theme_options = get_option( 'astra-settings' );
			$edd_settings        = get_option( 'edd_settings' );

			// Set flag to set the EDD style disable only once for the very first time.
			if ( ! isset( $astra_theme_options['ast-edd-disable-styles'] ) ) {
				$astra_theme_options['ast-edd-disable-styles'] = true;
				$edd_settings['disable_styles']                = true;
				update_option( 'astra-settings', $astra_theme_options );
				update_option( 'edd_settings', $edd_settings );
			}

		}

User Contributed Notes

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