Brainstorm_Update_Astra_Addon::enable_beta_updates( boolean $status )

Enable/Disable beta updates for Astra Theme and Astra Pro.


Description


Parameters

$status

(boolean) (Required) True - If beta updates are enabled. False - If beta updates are disabled.


Return

(boolean)


Source

File: class-brainstorm-update-astra-addon.php

		public function enable_beta_updates( $status ) {
			$allow_beta = Astra_Admin_Helper::get_admin_settings_option( '_astra_beta_updates', true, 'disable' );

			if ( 'enable' === $allow_beta ) {
				$status = true;
			} elseif ( 'disable' === $allow_beta ) {
				$status = false;
			}

			return $status;
		}

Changelog

Changelog
Version Description
1.5.1 Introduced.


User Contributed Notes

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