Hi,
I have found so far two membership plugins that…partially do the job.
S2Membership and Paid Membership Pro both succeed in protecting posts when I make a request like:
http://www.mydomain/wp-json/wp/v2/posts
However they both don’t succeed in protecting the data when I make a request like:
http://www.mydomain/wp-json/wp/v2/post/ID (with ID is of a restricted post)
I start wondering whether the security check that wp rest api does is the same for both endpoints?
Any comments? Even better; solution?
Regards,
Mario
Hi again,
just noticed that, when requesting the ID endpoint, Paid Membership Pro changes the content of the restricted post with a custom message.
So this seems to be working, strange that it still returns the post-title and id of the author but ok I can live with this!
Regards,
Mario
Hi @mariofrombelgium I have interested in your project, can you please describe a little more? As I am working on similar may be we can help each other?
I am using Membership2 https://premium.wpmudev.org/project/membership/ plugin, and I want to enable to register members via rest api. Now I am trying to register routs that will allow me to get membership list for example, but now sure this is the best otpion.
Sorry I wanted to say NOT sure is this the best option?
To register routes for example ‘/membership’ and send there post requests for registering members?