codehaven - php snippets - coding help
Generic filters
Exact matches only
  • Disable buying – Woocommerce

    25th April 2023


    woocommerce category codehaven

    It’s very easy to do! This code will hide the add to cart buttons and elsewhere will change the buttons to ‘Read More’. You can then change what the button says by using a second code.

    Add this to the functions.php page in your theme.

    The code to change the button text: –

    Was this code snippet helpful?