Require that users be logged in before viewing any product pages
If you’d like to make sure that your users are logged in before viewing any product pages you can place the following code snippet in your functions.php file: http://pastebin.com/8B5m1rj9
Posted in: Helpful Code Snippets