I am using the Woocommerce Wordpress plugin for an E-commerce site. I want to be able to set the site in a non-ecommerce mode, ie without the cart and checkout etc etc. I know there is a plugin you can buy that does this but I am trying to do this myself.
I suppose I have to make myself a child theme and in the
function.php remove certain pages. I do not want to just hide them because a user could still browse to them. I would like to return a 404 on any E-commercey page even though the page really exists.
I could use
wp_delete_posts but then when I go back to the Parent theme the pages are gone too. What do you advise?