1. Home
  2. Docs
  3. Cost of Goods Sold (COGS)...
  4. How To
  5. Restricting Content Access for Unverified Users

Restricting Content Access for Unverified Users

Article 11.1

This article explores the “Block content” functionality within the WooCommerce Email Verification plugin, empowering you to control which content unverified users (including guests) can access within your store.

Understanding the Functionality:

This feature restricts access to specific pages and products for unverified users by limiting their ability to reach the corresponding URLs. It’s particularly relevant when the “Block unverified login” option is disabled, making verification optional but encouraging completion through restricted access.

Available Blocking Options:

  • Blocked pages: Choose specific pages to restrict access to, including:
  1. Cart
  2. Checkout
  3. My account
  4. Profit and Cost Shortcode
  5. Shop
  6. Custom page URLs (e.g., “testform”)
  7. Wishlist
  1. Blocked products: Limit access to individual products based on their existence in your store.
  2. Conditionals: Define specific conditions under which content blocking applies:
  1. Is WooCommerce: Applies on any WooCommerce-related page.
  2. Is Shop: Restricts access to the main shop page.
  3. Is Product Category: Blocks access to specific product categories.
  4. Is Product Tag: Restricts access to pages showcasing products with specific tags.
  5. Is Product: Blocks individual product pages.
  6. Is Cart: Restricts access to the cart page.
  7. Is Checkout: Prevents access to the checkout process.
  8. Is Account Page: Limits access to account-related pages.
  9. Is WC Endpoint URL: Restricts access to specific WooCommerce endpoint URLs.
  10. Is AJAX: Applies blocking to AJAX requests.
  1. Blocked URL(s): Manually specify additional URLs you want to restrict access to.
  2. Redirect: Optionally redirect unverified users to a different page upon encountering blocked content.
  3. Error notice: Customize the message displayed to unverified users encountering restricted content:
  1. Error for logged-in unverified users: Includes placeholders for %myaccount_url% (account page URL) and %resend_verification_url% (resend verification link).
  2. Error for guest users: Includes a placeholder for %myaccount_url%.

Accessing and Configuring Settings:

  1. Navigate to WooCommerce > Settings > Email Verification.
  2. Click on the Blocking tab.
  3. Select the desired blocking options and customize settings as needed.
  4. Click Save changes to apply your configuration.

Benefits of Content Blocking:

  1. Encourages Verification: Incentivizes users to complete verification to gain full access to store functionalities.
  2. Enhanced Security: Mitigates potential risks associated with unverified accounts accessing sensitive content.
  3. Improved User Experience: Provides a clear path for unverified users to complete verification and unlock full store access.

Conclusion:

By strategically utilizing the “Block content” functionality, you can effectively manage unverified user access within your WooCommerce store. This approach encourages account verification while maintaining security and enhancing the overall user experience.