Support » Plugin: WooCommerce Stripe Payment Gateway » where to add filter

  • Resolved xiaobijou

    (@xiaobijou)


    Hi,

    I would like to remove the Payment Request button at the product page but add it at the checkout page, I read the documentation and see the following answer. My question is, where do I actually add this filter? Thanks!

    Can I hide the Payment Request button on the single Product page?
    You can remove the Payment Request button from the Product page with this filter: add_filter( ‘wc_stripe_hide_payment_request_on_product_page’, ‘__return_true’ );

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author royho

    (@royho)

    Hello,

    You can add it to your child theme’s functions.php file. But if you’re not experienced in doing that I would urge you to hire someone because doing it wrong will bring down your site.

    Thank you so much, I was able to add it and it is working very well now. Thanks again.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘where to add filter’ is closed to new replies.