WC_Install::is_db_auto_update_enabled
Is DB auto-update enabled? This controls whether database updates are applied without prompting the admin. This is the default behavior since 9.9.0 and can be overridden via filter woocommerce_enable_auto_update_db.
Method of the class: WC_Install{}
Hooks from the method
Returns
true|false. TRUE if database auto-updates are enabled. FALSE otherwise.
Usage
$result = WC_Install::is_db_auto_update_enabled(): bool;
Changelog
| Since 9.9.0 | Introduced. |
WC_Install::is_db_auto_update_enabled() WC Install::is db auto update enabled code WC 10.3.3
public static function is_db_auto_update_enabled(): bool {
/**
* Allow WooCommerce to auto-update without prompting the user.
*
* @since 3.2.0
*/
return (bool) apply_filters( 'woocommerce_enable_auto_update_db', true );
}