Disable Checkout Smart Button Filter
-
Hi,
I’ve tried to remove the smart buttons on the checkout page using the method described in your github docs – https://github.com/woocommerce/woocommerce-paypal-payments/wiki/Actions-and-Filters#disable-checkout-smart-buttons –//Enable "Place order" button for PayPal gateway add_filter('woocommerce_paypal_payments_use_place_order_button', '__return_true'); //Change the button label - defaults to "Proceed to PayPal" add_filter('woocommerce_paypal_payments_place_order_button_text', function() { return __( 'Place order', 'woocommerce' ); });
I placed the code in functions.php, to no avail. Smart Buttons are still shown in checkout.
Is there something that needs to be done in addition to adding these filters that I missed in the documentation?
Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Disable Checkout Smart Button Filter’ is closed to new replies.