From 70247462a0fff23db8a8d1c4afe99b9746178521 Mon Sep 17 00:00:00 2001 From: Narek Zakarian Date: Fri, 11 Jul 2025 16:42:48 +0400 Subject: [PATCH] Always enable the new settings module --- modules.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/modules.php b/modules.php index 75482e42f..c1f2dfb04 100644 --- a/modules.php +++ b/modules.php @@ -33,6 +33,7 @@ return function ( string $root_dir ): iterable { ( require "$modules_dir/ppcp-blocks/module.php" )(), ( require "$modules_dir/ppcp-paypal-subscriptions/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 @@ -91,12 +92,5 @@ return function ( string $root_dir ): iterable { $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; };