mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Merge pull request #2237 from woocommerce/PCP-2815-allow-shipping-callback-and-skipping-confirmation-page-from-any-express-button
Add settings message
This commit is contained in:
commit
22dd86074b
1 changed files with 7 additions and 0 deletions
|
@ -53,6 +53,13 @@ return array(
|
|||
|
||||
$subscription_helper = $container->get( 'wc-subscriptions.helper' );
|
||||
|
||||
if ( $subscription_helper->plugin_is_active() ) {
|
||||
$label .= __(
|
||||
'<div class="ppcp-notice ppcp-notice-warning"><p><span class="highlight">Important:</span> Cannot be deactivated while the WooCommerce Subscriptions plugin is active.</p></div>',
|
||||
'woocommerce-paypal-payments'
|
||||
);
|
||||
}
|
||||
|
||||
return $insert_after(
|
||||
$fields,
|
||||
'smart_button_locations',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue