mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Always enable the new settings module
This commit is contained in:
parent
80d7da4df3
commit
70247462a0
1 changed files with 1 additions and 7 deletions
|
@ -33,6 +33,7 @@ return function ( string $root_dir ): iterable {
|
||||||
( require "$modules_dir/ppcp-blocks/module.php" )(),
|
( require "$modules_dir/ppcp-blocks/module.php" )(),
|
||||||
( require "$modules_dir/ppcp-paypal-subscriptions/module.php" )(),
|
( require "$modules_dir/ppcp-paypal-subscriptions/module.php" )(),
|
||||||
( require "$modules_dir/ppcp-local-alternative-payment-methods/module.php" )(),
|
( require "$modules_dir/ppcp-local-alternative-payment-methods/module.php" )(),
|
||||||
|
( require "$modules_dir/ppcp-settings/module.php" )(),
|
||||||
);
|
);
|
||||||
// phpcs:disable WordPress.NamingConventions.ValidHookName.UseUnderscores
|
// phpcs:disable WordPress.NamingConventions.ValidHookName.UseUnderscores
|
||||||
|
|
||||||
|
@ -91,12 +92,5 @@ return function ( string $root_dir ): iterable {
|
||||||
$modules[] = ( require "$modules_dir/ppcp-axo-block/module.php" )();
|
$modules[] = ( require "$modules_dir/ppcp-axo-block/module.php" )();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( apply_filters(
|
|
||||||
'woocommerce.feature-flags.woocommerce_paypal_payments.settings_enabled',
|
|
||||||
true
|
|
||||||
) ) {
|
|
||||||
$modules[] = ( require "$modules_dir/ppcp-settings/module.php" )();
|
|
||||||
}
|
|
||||||
|
|
||||||
return $modules;
|
return $modules;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue