Disable pay later block by default

This commit is contained in:
Emili Castells Guasch 2024-01-18 10:39:33 +01:00
parent 4c04144c23
commit 4d54d2d255

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