Linux 软件免费装

Member status API for MemberPress

开发者 nakkowp
j3eroen
j3roen
更新时间 2024年5月10日 05:12
PHP版本: 7.0 及以上
WordPress版本: 6.5
版权: GPLv2 or later
版权网址: 版权信息

标签

api rest memberpress recipemaker wprm

下载

1.1.3

详情介绍:

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 } ] },

安装:

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