From be071e2101d8c8396bcb3f48667905bd6f3c686f Mon Sep 17 00:00:00 2001 From: Narek Zakarian Date: Fri, 17 May 2024 17:35:11 +0400 Subject: [PATCH] Add settings message --- modules/ppcp-blocks/extensions.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/ppcp-blocks/extensions.php b/modules/ppcp-blocks/extensions.php index a882fe1e9..23218b89c 100644 --- a/modules/ppcp-blocks/extensions.php +++ b/modules/ppcp-blocks/extensions.php @@ -53,6 +53,13 @@ return array( $subscription_helper = $container->get( 'wc-subscriptions.helper' ); + if ( $subscription_helper->plugin_is_active() ) { + $label .= __( + '

Important: Cannot be deactivated while the WooCommerce Subscriptions plugin is active.

', + 'woocommerce-paypal-payments' + ); + } + return $insert_after( $fields, 'smart_button_locations',