mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Merge pull request #1483 from woocommerce/PCP-1856-blocks-flag
Make the blocks integration (partial) available without feature flag
This commit is contained in:
commit
79f0d476a6
2 changed files with 1 additions and 8 deletions
|
@ -27,7 +27,6 @@ web_environment:
|
|||
- ADMIN_PASS=admin
|
||||
- ADMIN_EMAIL=admin@example.com
|
||||
- WC_VERSION=7.7.2
|
||||
- PCP_BLOCKS_ENABLED=1
|
||||
|
||||
# Key features of ddev's config.yaml:
|
||||
|
||||
|
|
|
@ -26,14 +26,8 @@ return function ( string $root_dir ): iterable {
|
|||
( require "$modules_dir/ppcp-vaulting/module.php" )(),
|
||||
( require "$modules_dir/ppcp-order-tracking/module.php" )(),
|
||||
( require "$modules_dir/ppcp-uninstall/module.php" )(),
|
||||
( require "$modules_dir/ppcp-blocks/module.php" )(),
|
||||
);
|
||||
|
||||
if ( apply_filters(
|
||||
'woocommerce_paypal_payments_blocks_enabled',
|
||||
getenv( 'PCP_BLOCKS_ENABLED' ) === '1'
|
||||
) ) {
|
||||
$modules[] = ( require "$modules_dir/ppcp-blocks/module.php" )();
|
||||
}
|
||||
|
||||
return $modules;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue