mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Make sure the PayLaterWCBlocksModule module gets loaded conditionally
This commit is contained in:
parent
eb916a37a7
commit
b6144a173f
1 changed files with 4 additions and 1 deletions
|
@ -6,6 +6,7 @@
|
|||
*/
|
||||
|
||||
use WooCommerce\PayPalCommerce\PayLaterBlock\PayLaterBlockModule;
|
||||
use WooCommerce\PayPalCommerce\PayLaterWCBlocks\PayLaterWCBlocksModule;
|
||||
use WooCommerce\PayPalCommerce\PayLaterConfigurator\PayLaterConfiguratorModule;
|
||||
use WooCommerce\PayPalCommerce\PluginModule;
|
||||
|
||||
|
@ -72,7 +73,9 @@ return function ( string $root_dir ): iterable {
|
|||
$modules[] = ( require "$modules_dir/ppcp-paylater-block/module.php" )();
|
||||
}
|
||||
|
||||
if ( PayLaterWCBlocksModule::is_module_loading_required() ) {
|
||||
$modules[] = ( require "$modules_dir/ppcp-paylater-wc-blocks/module.php" )();
|
||||
}
|
||||
|
||||
if ( PayLaterConfiguratorModule::is_enabled() ) {
|
||||
$modules[] = ( require "$modules_dir/ppcp-paylater-configurator/module.php" )();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue