WC_Install::is_db_auto_update_enabledpublic staticWC 9.9.0

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.

Метод класса: WC_Install{}

Хуки из метода

Возвращает

true|false. TRUE if database auto-updates are enabled. FALSE otherwise.

Использование

$result = WC_Install::is_db_auto_update_enabled(): bool;

Список изменений

С версии 9.9.0 Введена.

Код WC_Install::is_db_auto_update_enabled() WC 9.9.5

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