- Function to create a private link for a protected post by post_id:
- API to create a private link by post_id:
Endpoint: yourdomain.com/wp-json/pup/api/v1/post/:id Method: POST Permission: edit_posts
Endpoint: yourdomain.com/wp-json/pup/api/v1/post/:id Method: POST Permission: edit_posts