plugin-icon

Member status API for MemberPress

作者:Nakko·
This plugin extends the WordPress REST API with MemberPress membership and product data within the current user context.
版本
!!VERSION!!
活跃安装
10
最后更新
Sep 26, 2025

This plugin allows the MemberPress membership status of the current authenticated user to be exposed via the WordPress REST API:

GET /wp-json/mp-member-status/v1/me

Example response:

{ "user_id": 2, "full_name": "John Doe", "is_active": true, "enabled_products": [ { "id": 10, "title": "Premium Membership", "name": "premium-membership", "url": "https://example.com/register/premium-membership/", } ] }

Additionally, MemberPress access information is added to all post endpoints, the post content or access itself is not modified by this plugin:

Example post response excerpt:

memberpress: { "is_locked": true, "products": [ { "id": 10, "title": "Premium Membership", "name": "premium-membership", "url": "https://example.com/register/premium-membership/", "can_you_buy_me": true, "is_subscribed": false } ] },

Features

  • Creates a REST API endpoint to fetch the MemberPress membership status of the current user.
  • Allows to list the active products for the current user.
  • Adds the Memberpress “is_locked” status field to all available post types in the REST API
  • Adds a list of possible Memberpress Products required to unlock posts.
  • Support for WordPress Recipe Maker’s and MemberPress rules set for the parent Post.

1.2.3 – 2025-09-26

Changed

  • Bump wordpress version
  • Remove member-press user role restriction

1.2.2 – 2025-01-30

Fixed

  • missing files

1.2.1 – 2025-01-30

Added

  • Split object cache durations for generic objects and user specific objects
  • Make object cache durations configurable in options.php

1.2.0 – 2024-06-04

Added

  • MemberPress plugin dependency
  • Active rules for the current user to the /me endpoint
  • Product group reference to each product

1.1.3 – 2024-05-02

Changed

  • Refactor all namespaces and filename prefixes

Read changelog.md for more

免费使用Business套餐
通过安装,您同意 WordPress.com 服务条款第三方插件条款
目前已测试版本
WordPress 6.8.3
这个插件是可用的下载,适用于您的站点。