Questions tagged [woocommerce-memberships]

WooCommerce Memberships is an extension for WooCommerce that allows you to restrict your content so that it's only accessible to members on your site. Question related to WooCommerce Memberships can be asked

WooCommerce Memberships is an extension for WooCommerce that allows you to restrict your content so that it's only accessible to members on your site.

WooCommerce Memberships Documentation

Similar application by another vendor WebToffee

62 questions
8
votes
1 answer

Date and date range based member-only downloads

Scratching my head with a specific setup for member-only content (currently using Woo Memberships and Woo Subscriptions). The project has a large number of downloadable products which are available for purchase as one-offs. So far so good…
4
votes
5 answers

WooCommerce Memberships check if user (with current membership plan) is able to access the contents

Currently, I am trying to check if the user has the access to a certain page (based on their membership plan). Below is my code, but it seems like wc_memberships_is_user_active_member only checks if the user is an active member. if(…
3
votes
2 answers

How to use WooCommerce Membership hook

I'm working on a website using WooCommerce membership. I'm using a hook called wc_memberships_user_membership_saved, What I want is to display a recap of my order. I read this documentation:…
3
votes
1 answer

Display member discounted prices to non-members in WooCommerce

In WooCommerce, I have 3 membership tiers (silver, gold and platinum) and I applied higher discount rate for higher membership tier. I would like show the 4 different prices (non-member, silver, gold and platinum) to everyone such that they know how…
3
votes
1 answer

Get all active users for a membership plan in WooCommerce

I am Using Wordpress version 4.9.4 with WooCommerce an WooCommerce Memberships plugin. How can I get all users for specific membership plan ($memberships)? Is there a hook or should I use raw query? On the documentation, it says that plans /…
2
votes
1 answer

Filter Membership Plan Title and Slug

I would like to filter the titles of my WooCommerce Memberships plans depending in the current language (using PolyLang). The following works on the back end, i.e. I can see that the membership plan title (for membership plan with post_id 3884)…
Uwe
  • 85
  • 1
  • 5
2
votes
1 answer

WooCommerce Subscriptions - Automatically complete renewal orders and Subscription status

I am working on a site which uses WooCommerce Subscriptions and WooCommerce Memberships. It sells subscriptions which renew annually. The only payment gateway being used is Cheque (renamed to Pay via Invoice), so all renewals are manual renewals.…
2
votes
2 answers

How to access Woocommerce Membership profile fields data and display it on the frontend?

I have set up a user profile field called "Testing" though the woocommerce membership panel. I now want to access this field and its data on the front-end of the website. I looked up the documentation and the closest function I could find is…
Vinith Almeida
  • 1,421
  • 3
  • 13
  • 32
2
votes
1 answer

Show/Hide content based on number of active memberships from user

Using a shortcode, I'd need to show content based on the number of active memberships the user has, no matter which membership plan he's a member of. I'm not really into PHP but I found that wc_memberships_get_user_memberships function exists so…
2
votes
2 answers

Display WooCommerce Memberships price for non members

I'm using the WooCommerce Membership plugin to display member discounts on the Product page. Now I want to display the discount you could get with a membership for non member. This is what I see when I'm not a member: This is what I see when I'm a…
2
votes
1 answer

remove_action From PHP Class in WooCommerce Memberships

I have previously used a solution described here: remove_action From PHP Class for removing an action in the WooCommerce membership plugin. However, the solution no longer works, as WooComemerce have changed the code behind the membership…
2
votes
1 answer

Is there an option to limit daily downloads to WooCommerce subscriptions?

We have around 150 digital downloadable products powered by WooCommerce and recently had to integrate subscriptions plugin (called WooCommerce subscriptions) and also a WooCommerce memberships plugin. Is there an option to limit 5 downloads per day…
2
votes
4 answers

Changing WooCommerce membership status

I've been banging my head for about a week now. any help would be greatly appreciated. I have a WooCommerce store where I need to be able to update the user's membership status (canceled, active, etc) through Php. I know I can grab their current…
2
votes
3 answers

WooCommerce Memberships: Conditional to check a page access

I have a Wordpress Memberships website that is built on WooCommerce with WooCommerce Memberships plugin to restrict certain pages to members only. Some of those pages are "drip-fed"... ie. Access to those pages opens 3 days after purchase, etc. I…
1
vote
1 answer

Delay a WordPress function. Is this possible?

I was wondering to know if it is possible to run a WordPress function with a delay of some seconds or minutes. I use the following snippet to send an email to admin after a new user is registered on my website add_action( 'user_register',…
1
2 3 4 5