How to Redirect WooCommerce Default Pages in WordPress

Here is how you can redirect the WooCommerce page in WordPress. WooCommerce by default creates many pages, and sometimes we want to customize our pages and hide the default pages. To hide these pages, you can simply use the provided code.

To make the WooCommerce default page inaccessible to others, simply go to Appearance > Theme File Editor. Click on functions.php, scroll down, and add the code there. Now, if you go to the page, it will not be accessible for non-loggedin users; however, the page will work fine for the logged-in user.

Also, you can customize the URL you want to redirect it to. Hope this video was useful. Thank you very much.

Recent blogs