Questions tagged [memberpress]

Use the tag for questions related to the wordpress plugin `memberpress`

Memberpress is a plugin for membership management.

36 questions
4
votes
0 answers

PHP script to limit the number of custom posts certain users can publish in Wordpress

Background: I tried both https://wordpress.org/plugins/bainternet-posts-creation-limits and https://wordpress.org/plugins/limit-posts/, but they didn't work for some reason with my custom posts. So I decided to write my own php script, which I put…
3
votes
1 answer

You are unauthorized to view this page: JWT Authentication for WP REST API with MemberPress plug in using WordPressPCL

Trying to use JWT Authentication for WP REST API using WordPressPCL API. Managed to authenticate and publish both posts and pages to the WordPress server using WordPressPCL. In order to restrict access to only paying members I was planning to use…
2
votes
0 answers

Inserting Memberpress Rule into Elementor

I'm looking to protect Elementor content with a Memberpress Rule. I created a partial rule which provided a shortcode + PHP snippet. The shortcode widget doesn't seem to be protecting the content. Any advice on how I can protect a block with this…
Aja
  • 21
  • 2
1
vote
0 answers

Apply memberpess coupon to shows p element with ACF field value

On a WordPress site, We use Memberpress. It has the option to add coupons to use on checkout. We want to see if there is some possibility for the content editor to add custom text to the coupon admin page that will show up when the coupon is…
Ilianskia
  • 13
  • 1
  • 1
  • 5
1
vote
1 answer

Custom URI regular expression

I would like to restrict access to my site using a custom URI regular expression. I would like to allow access for such URIs: https://example.com/item/page/2/?wpv_view_count=258 https://example.com/item/page/3/?wpv_view_count=258 and restrict…
Martha
  • 31
  • 5
1
vote
1 answer

How to add GA tracking on MemberPress thank you page after transaction

I am wondering how I can add a google tracking on MemberPress "Thank You" page, basically after a user had paid a monthly or recurring payment and then it will send the data to google analytics with "the name of the plan which they bought", "the…
Francis Alvin Tan
  • 1,057
  • 3
  • 21
  • 42
1
vote
1 answer

Set user role after paying monthly subscription on Memberpres

I'm building a website where users pay a monthly subscription to access different courses. I've got Memberpress setup to handle user registration and the monthly subscription. When the user selects a course, I call a function the set the user role.…
Denis
  • 11
  • 1
1
vote
0 answers

Why I am getting rest_forbidden error while making request to MemberPress end points?

I am working on wordpress site. I've installed Oauth2 and MemberPress plugins. I need to call MemberPress REST API endpoints to get current user info (user's subscriptions and memberships data) using access_token. But problem is that when non-admin…
Muhammad Sajid
  • 117
  • 1
  • 2
  • 16
1
vote
0 answers

Where to Edit the Registration Form Error Messages?

I am customizing the registration form to appear in Arabic. I want to edit the error messages and the "Have a coupon" to be in Arabic and I am not able to find the registration form view in WordPress plugin editor.
Maram Mutaieb
  • 51
  • 1
  • 2
0
votes
0 answers

Support for Modern Events Calendar lite - hide registration (or zoom links) from users not logged in

I am looking to hide the registration links from users that are not members (or if not possible then from those users not logged in). Even with the page protected by memberpress (https://memberpress.com/)the right sidebar with the register link and…
0
votes
0 answers

How do I add a WP user role select dropdown to the MEMBERPRESS registration form?

I would like to know if I can insert a WP role select dropdown into the memberpress registration page? (and for them to show up in admin profile, ability to change, the whole deal) Yes, I have read the instructions of how to do this to add this to…
0
votes
0 answers

Wordpress + Memberpress: hide links or content in loop

As far as I understand with Memberpress you can hide the content of a page to a user who has no membership for it. Suppose you have two WP categories (Music and Books) with two corresponding memberships, and user "John" has membership just for…
0
votes
0 answers

How to add additional validation to a custom field in MemberPress

I have an original registration form in MemberPress with some custom fields. One of them, is an ID Card. I need to use a custom validation function in my functions.php file to validate this ID Card. How can I call to this function before submit my…
0
votes
0 answers

How to return Subscription ID from MemberPress

I'm attempting to implement AWIN tracking to my wordpress site. I need to return the subscription ID, and the voucher code used for a transaction. See Below: