Member status API for MemberPress

توضیحات

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.

نصب

Install the MpMemberStatus plugin and activate it. No further configuration is necessary.

نقد و بررسی‌ها

نقد و بررسی‌ای برای این افزونه یافت نشد.

توسعه دهندگان و همکاران

“Member status API for MemberPress” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کرده‌اند.

مشارکت کنندگان

ترجمه “Member status API for MemberPress” به زبان شما.

علاقه‌ مند به توسعه هستید؟

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.