Protect WordPress Pages & Posts API

  1. Function to create a private link for a protected post by post_id:

  2. API to create a private link by post_id:
    Endpoint: yourdomain.com/wp-json/pup/api/v1/post/:id
    Method: POST
    Permission: edit_posts
Lasted updated on January 8, 2019