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
1
vote
1 answer

How can I edit the WooCommerce Memberships "set end date" function if it has no filter to hook into the function?

In the WooCommerce Memberships plugin file class-wc-memberships-user-membership.php I am trying to edit this function in my theme's functions.php file so I don't have to edit this file directly: /** * Sets the membership end datetime. …
1
vote
0 answers

How to hide certain menu like PAYMENT SETTINGS based on product ID?

How to hide certain menu like PAYMENT SETTINGS based on product ID that subscriber pay for? I know how to hide button based on the product ID, but I don't know how to hide certain menu based on product ID. Please help because I'm stuck. function…
1
vote
0 answers

Hiding some users and customers to shop managers based on the product they bought

here’s my question. I hope you can help since I am a bit stuck (not beeing good at PHP…). I build a sport school website, allowing customers to purchase memberships. For this I use WooCommerce, Memberships and Subscription. Sports for which classes…
1
vote
0 answers

Woocommerce Membership Limiting Members to One Membership

I have a Wordpress Memberships website that is built on WooCommerce with WooCommerce-Memberships plugin. The scenario: - Membership Plan = Gold-Plan-Membership / 1-month - simple Product = Gold-Product-Membership / €10,00 When the customer buys…
1
vote
0 answers

Paid Membership Pro force WooCommerce membership

I have a site on which I sell membership with Pmpro and WooCommerce. Memberships are made as WooCommerce Products. I am using the following snippet to force membership on my site. But it restricts the user to pmpro pages only till they buy a…
1
vote
2 answers

WooCommerce Memberships. In admin list view of Members, how do I add "user ID" column

I am using the WooCommerce Memberships plugin. In the admin dashboard, when I go to WooCommerce > Members there is a list view which has the column headers: Name, Email, Plan, Team, Status, Member since, Expires I would like to add the USER ID…
Bec9999
  • 37
  • 1
  • 3
1
vote
1 answer

wp_insert_post once a user buys a WooCommerce membership subscription

I am trying to create a new post inside my custom post type 'vipmembers' once the user buys a WooCommerce membership subscription (user role 'subscriber'). The code below only allows me to add a new post once the user is a customer(i.e when user…
1
vote
1 answer

How to add Active WooCommerce Membership Plan Slug to Body Class?

I'm setting up a membership site using WooCommerce, WooCommerce Subscriptions, and WooCommerce Memberships. Ideally, I would first like to check if the user is logged-in and if they have an active membership. Then, I want to add the active…
1
vote
1 answer

find user membership plan WooCommerce

I want to find the logged-in user's WooCommerce membership plan and then add CSS. Something like this code but this code doesn't work. $user_id = get_current_user_id(); if ( wc_memberships_is_user_active_member( $user_id, '1-level' ) ) { echo…
Bobo
  • 13
  • 5
1
vote
0 answers

WooCommerce: which hook to use to change the expiration of a membership during the first purchase?

In a project, I'm working on using WooCommerce with membership and subscription plugins. I need to change the date of both the subscription and membership end at the end of the first order. Using the woocommerce_order_status_completed hook I can run…
1
vote
0 answers

WooCommerce Memberships all content older than 2 years make public

I am going to be using WooCommerce Memberships to restrict the content of my site to members only, however I would also like to make any posts older than 2 years be accessible to or (member or not). Out of the box, it doesn't seem that the…
dungey_140
  • 2,602
  • 7
  • 34
  • 68
1
vote
0 answers

How to create a membership renewal link to be sent by email including auto login

I am working on a membership site where the emails "Membership ending soon" which is part of WooCommerce membership are not sufficient as we need to be sending 3 emails before the membership expires at 45 days, 30 days and 15 days. I am working on a…
user1620090
  • 499
  • 6
  • 19
1
vote
1 answer

Lookup active WooCommerce Membership and loop results

I run WordPress, WooCommerce, WooCommerce Memberships & WooCommerce Subscriptions. Here I'm trying to lookup the user and the memberships they have purchased, each membership is basically a product, and then I'm attempting to loop and show…
1
vote
1 answer

WordPress WooCommerce Membership plan add column to list

I found this 2 filters for WooCommerce to extend the membership plan list: add_filter( 'manage_edit-wc_user_membership_columns', array( $this, 'customize_columns' ) ); add_filter( 'manage_edit-wc_user_membership_sortable_columns', array( $this,…
1
vote
2 answers

WooCommerce Membership Cancel in WordPress

A customer can usually cancel a membership in his dashboard. How can I restrict this (hide the cancel button) for a specific membership? I found this code for general hide the cancel button, work's so far: function sv_edit_my_memberships_actions(…
web-e
  • 21
  • 2