WooCommerce Members Only Archives - Plugin Republic https://pluginrepublic.com/support-categories/woocommerce-members-only/ WooCommerce Plugins Thu, 05 Nov 2020 09:50:14 +0000 en-US hourly 1 https://pluginrepublic.com/wp-content/uploads/2020/10/cropped-favicon-1-32x32.png WooCommerce Members Only Archives - Plugin Republic https://pluginrepublic.com/support-categories/woocommerce-members-only/ 32 32 Remove WooCommerce notice when user registers new account https://pluginrepublic.com/documentation/remove-woocommerce-notice-when-user-registers-new-account/ https://pluginrepublic.com/documentation/remove-woocommerce-notice-when-user-registers-new-account/#respond Thu, 05 Nov 2020 09:50:12 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=678930 If you want to disable the standard WooCommerce notice that displays when a new user registers an account, you can use the following snippet: This is how to add the snippet.

The post Remove WooCommerce notice when user registers new account appeared first on Plugin Republic.

]]>
If you want to disable the standard WooCommerce notice that displays when a new user registers an account, you can use the following snippet:

View this code snippet on GitHub.

This is how to add the snippet.

The post Remove WooCommerce notice when user registers new account appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/remove-woocommerce-notice-when-user-registers-new-account/feed/ 0
Filter new user registration email content https://pluginrepublic.com/documentation/filter-new-user-registration-email-content/ https://pluginrepublic.com/documentation/filter-new-user-registration-email-content/#respond Sat, 31 Oct 2020 08:01:57 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=671895 Use this wcmo_new_registration_email_content to filter the content of the email sent to the site admin when a user needs to be approved. Here’s how to add a snippet.

The post Filter new user registration email content appeared first on Plugin Republic.

]]>
Use this wcmo_new_registration_email_content to filter the content of the email sent to the site admin when a user needs to be approved.

View this code snippet on GitHub.

Here’s how to add a snippet.

The post Filter new user registration email content appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/filter-new-user-registration-email-content/feed/ 0
Display notice to user if their account is pending https://pluginrepublic.com/documentation/display-notice-to-user-if-their-account-is-pending/ https://pluginrepublic.com/documentation/display-notice-to-user-if-their-account-is-pending/#respond Tue, 20 Oct 2020 11:50:14 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=655602 If you want to let users know that their accounts are still pending, you can use this snippet: Here’s how to add the snippet.

The post Display notice to user if their account is pending appeared first on Plugin Republic.

]]>
If you want to let users know that their accounts are still pending, you can use this snippet:

View this code snippet on GitHub.

Here’s how to add the snippet.

The post Display notice to user if their account is pending appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/display-notice-to-user-if-their-account-is-pending/feed/ 0
Filter approval and rejection messages https://pluginrepublic.com/documentation/filter-approval-and-rejection-messages/ https://pluginrepublic.com/documentation/filter-approval-and-rejection-messages/#respond Tue, 20 Oct 2020 11:43:20 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=655598 You can filter the email messages sent when a user is approved or rejected using the following snippet: Here’s how to add a snippet.

The post Filter approval and rejection messages appeared first on Plugin Republic.

]]>
You can filter the email messages sent when a user is approved or rejected using the following snippet:

View this code snippet on GitHub.

Here’s how to add a snippet.

The post Filter approval and rejection messages appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/filter-approval-and-rejection-messages/feed/ 0
Set a fixed expiry date https://pluginrepublic.com/documentation/set-a-fixed-expiry-date/ https://pluginrepublic.com/documentation/set-a-fixed-expiry-date/#respond Wed, 07 Oct 2020 07:13:01 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=636247 By default, you can set expiry dates a specific period of time into the future. So a membership role will expire one month, one year, etc from the time of purchase. If you’d prefer to set a specific date, you’d need to use the following filter: Here’s how to add a snippet.

The post Set a fixed expiry date appeared first on Plugin Republic.

]]>
By default, you can set expiry dates a specific period of time into the future. So a membership role will expire one month, one year, etc from the time of purchase.

If you’d prefer to set a specific date, you’d need to use the following filter:

View this code snippet on GitHub.

Here’s how to add a snippet.

The post Set a fixed expiry date appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/set-a-fixed-expiry-date/feed/ 0
Add expiry date to product page https://pluginrepublic.com/documentation/add-expiry-date-to-product-page/ https://pluginrepublic.com/documentation/add-expiry-date-to-product-page/#respond Tue, 11 Aug 2020 15:06:38 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=558858 You can use the following snippet to display details of a product’s expiration date: How to add a snippet.

The post Add expiry date to product page appeared first on Plugin Republic.

]]>
You can use the following snippet to display details of a product’s expiration date:

View this code snippet on GitHub.

How to add a snippet.

The post Add expiry date to product page appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/add-expiry-date-to-product-page/feed/ 0
Remove existing user roles https://pluginrepublic.com/documentation/remove-existing-user-roles/ https://pluginrepublic.com/documentation/remove-existing-user-roles/#respond Thu, 25 Jun 2020 05:44:42 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=479366 You can use the following filter to remove existing user roles if a user is assigned a new role when purchasing a product: This is how to add a snippet.

The post Remove existing user roles appeared first on Plugin Republic.

]]>
You can use the following filter to remove existing user roles if a user is assigned a new role when purchasing a product:

View this code snippet on GitHub.

This is how to add a snippet.

The post Remove existing user roles appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/remove-existing-user-roles/feed/ 0
Allow restricted users to access product page https://pluginrepublic.com/documentation/allow-restricted-users-to-access-product-page/ https://pluginrepublic.com/documentation/allow-restricted-users-to-access-product-page/#respond Wed, 17 Jun 2020 11:33:03 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=462578 If you would like to allow users to view your product pages but not be able to purchase the product, you can do so with a couple of quick settings. Go to WooCommerce > Settings > Members Only. You’ll need to specify ‘All Product Pages’ as the ‘Restricted Content’ type. To allow users to view […]

The post Allow restricted users to access product page appeared first on Plugin Republic.

]]>
If you would like to allow users to view your product pages but not be able to purchase the product, you can do so with a couple of quick settings.

Go to WooCommerce > Settings > Members Only. You’ll need to specify ‘All Product Pages’ as the ‘Restricted Content’ type.

To allow users to view the product pages without being able to purchase the product, check the ‘Access Product Pages’ field. This means that restricted users will be able to load the product page but the ‘Add to Cart’ button will be hidden.

If you’d like to display an alternative message, you can add text to the ‘Add To Cart Text’ field. The text you enter here will be displayed instead of the Add to Cart button.

And if you’d like to display an alternative Add to Cart button that will redirect the user to your log-in page, check the ‘Redirect from Add to Cart Button’ field. This will display a button with the ‘Add to Cart Text’ that will redirect the user when clicked. The user will be redirected to the page specified in the ‘If Restricted, Redirect To’ setting.

The post Allow restricted users to access product page appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/allow-restricted-users-to-access-product-page/feed/ 0
Add new user role when existing role expires https://pluginrepublic.com/documentation/add-new-user-role-when-existing-role-expires/ https://pluginrepublic.com/documentation/add-new-user-role-when-existing-role-expires/#respond Tue, 09 Jun 2020 10:45:58 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=445780 If you are setting an expiry time on membership roles, you might want to add a new role when the membership role expires. You can do this with the following snippet. Note that if you are assigning a new role to replace an expired role, you will need to have created that new role in […]

The post Add new user role when existing role expires appeared first on Plugin Republic.

]]>
If you are setting an expiry time on membership roles, you might want to add a new role when the membership role expires.

You can do this with the following snippet. Note that if you are assigning a new role to replace an expired role, you will need to have created that new role in WooCommerce > Settings > Members Only > Roles.

View this code snippet on GitHub.

Here’s how to add a snippet.

The post Add new user role when existing role expires appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/add-new-user-role-when-existing-role-expires/feed/ 0
Change the label for the ‘Role’ field in the registration form https://pluginrepublic.com/documentation/change-the-label-for-the-role-field-in-the-registration-form/ https://pluginrepublic.com/documentation/change-the-label-for-the-role-field-in-the-registration-form/#respond Fri, 22 May 2020 12:47:42 +0000 https://pluginrepublic.com/?post_type=ht_kb&p=408939 You can replace the label ‘Role’ in the registration form using this snippet: Here’s how to add a snippet.

The post Change the label for the ‘Role’ field in the registration form appeared first on Plugin Republic.

]]>
You can replace the label ‘Role’ in the registration form using this snippet:

View this code snippet on GitHub.

Here’s how to add a snippet.

The post Change the label for the ‘Role’ field in the registration form appeared first on Plugin Republic.

]]>
https://pluginrepublic.com/documentation/change-the-label-for-the-role-field-in-the-registration-form/feed/ 0