mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
The `woocommerce_paypal_payments_blocks_enabled` filter or `PCP_BLOCKS_ENABLED` env var are not used anymore, the blocks can be enabled in the settings without activating this feature flag first.
33 lines
1.1 KiB
PHP
33 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* The list of modules.
|
|
*
|
|
* @package WooCommerce\PayPalCommerce
|
|
*/
|
|
|
|
use WooCommerce\PayPalCommerce\PluginModule;
|
|
|
|
return function ( string $root_dir ): iterable {
|
|
$modules_dir = "$root_dir/modules";
|
|
|
|
$modules = array(
|
|
new PluginModule(),
|
|
( require "$modules_dir/woocommerce-logging/module.php" )(),
|
|
( require "$modules_dir/ppcp-admin-notices/module.php" )(),
|
|
( require "$modules_dir/ppcp-api-client/module.php" )(),
|
|
( require "$modules_dir/ppcp-button/module.php" )(),
|
|
( require "$modules_dir/ppcp-compat/module.php" )(),
|
|
( require "$modules_dir/ppcp-onboarding/module.php" )(),
|
|
( require "$modules_dir/ppcp-session/module.php" )(),
|
|
( require "$modules_dir/ppcp-status-report/module.php" )(),
|
|
( require "$modules_dir/ppcp-subscription/module.php" )(),
|
|
( require "$modules_dir/ppcp-wc-gateway/module.php" )(),
|
|
( require "$modules_dir/ppcp-webhooks/module.php" )(),
|
|
( 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" )(),
|
|
);
|
|
|
|
return $modules;
|
|
};
|