Tag: read-capabilities
-
How To Restrict User to Self Posts in WordPress
in WordPressTo secure our private site while using a third-party WordPress REST API integration, I restricted the plugin user to its own posts with user_has_cap and allowed access to its revisions. I also used posts_results to mark non-qualifying posts as private. Here’s a sample implementation for similar needs.