How to Redirect Restricted Users to a Custom URL?

Redirecting Restricted Users to a Custom URL

To redirect restricted users to a custom URL using the “WooCommerce Product Visibility by User Roles” plugin, follow these steps:

In your WordPress admin dashboard, go to WooCommerce in the left-hand menu.

Within the “Products Visibility” section, customize the behavior for restricted product access. You can do this in the global visibility settings and visibility by user roles.

Locate the “Redirection Mode” section and select the “Custom URL” option.

After choosing the “Custom URL” option, you will see a field where you can specify the custom URL to which users will be redirected when they attempt to access restricted products.

Enter the full URL of the page where you want to redirect users who are restricted from accessing the product.

After entering the custom URL, make sure to save your settings by clicking the “Save Changes” button on the settings page.