Brainstorm_Update_Astra_Addon::enable_beta_updates( bool $status )
Enable/Disable beta updates for Astra Theme and Astra Pro.
Description
Parameters
- $status
-
(bool) (Required) True - If beta updates are enabled. False - If beta updates are disabled.
Return
(bool)
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;
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 1.5.1 | Introduced. |