With Rest V2 (WP4.7) how does one restrict certain RESTFUL verbs?

I have gone through the source, and from what I can see, there aren’t any hooks/filters to tap into changing permissions. My understanding is that this was an intentional design decision. While the REST API was built to be extensible, it is not recommended to modify core endpoints in the way you are asking. There … Read more

How to enable suggested edits?

Diff the post content, title and author As had to do something related some month ago, here’s the easiest and most future proof way (that I could fine) to check if there’s a change made to the content or title or if the author changed: // Update Title ” !== wp_text_diff( $el[‘post_title’], $GLOBALS[‘post’]->post_title ) AND … Read more

Allow member to have access to custom post type only. Permission to only edit their own posts

Use Justin Tadlock’s plugin “Members“. It gives you the ability to create new roles and edit existing roles, as well as add custom capabilities. All that work that you’d have to do can be taken down to a few clicks. I know you said in your comment on ZaMoose’s answer that you are ‘looking to … Read more