Merge pull request #1969 from woocommerce/disable-pay-later-block-by-default

Disable Pay Later block by default
This commit is contained in:
Emili Castells 2024-01-18 11:17:28 +01:00 committed by GitHub
commit 08aa7578b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,7 +28,7 @@ class PayLaterBlockModule implements ModuleInterface {
return apply_filters(
// phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
'woocommerce.feature-flags.woocommerce_paypal_payments.paylater_block_enabled',
getenv( 'PCP_PAYLATER_BLOCK' ) !== '0'
getenv( 'PCP_PAYLATER_BLOCK' ) === '1'
);
}