Always enable the new settings module

This commit is contained in:
Narek Zakarian 2025-07-11 16:42:48 +04:00
parent 80d7da4df3
commit 70247462a0
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7

View file

@ -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;
}; };