How to make WordPress ‘editor’ role to list/view/add/edit users only with the role ‘author’?
I have added some extra capabilities to the existing ‘editor‘ role in wordpress with:
I have added some extra capabilities to the existing ‘editor‘ role in wordpress with:
I’m trying to add a custom post types with capabilities, so a custom user role can do certain things with them. Eventually the custom role is a Client, and the post a Website, and I want clients to be able to log in and view their websites. However, the post type is not showing up as soon as I add capabilities => 'website'. Why is is not showing up? I was following this tutorial and here it seems to work at 3:54 (with vehicles as a custom post type).
Using Basic Authentication as an Administrator, I am getting an error code 401 Unauthorized : [rest_cannot_view_plugins] Sorry, you are not allowed to manage plugins for this site. error when I attempt to access the GET /wp-json/wp/v2/plugins endpoint of my server. I can pull Post and Page info with no problem, but when I query against the plugins, I’m getting the 401 error. I’ve confirmed that the userid used in the API call should be able to manage plugins using the CLI tool:
I have some posts that author is Administrator and some other posts that author is Editor
By default, WordPress shows admin toolbar to Administrator, Editor, or Author but not to Subscriber or unauthenticated visitors.
I need to allow Subscribers to edit their posts (done) and read (see in backend) posts of specific author or with specific ID (to make copies of it). I found the code, but that’s not enough:
I wish to create a custom capability for accessing the interface of my plugin.
I have a custom post type that I’d like to restrict access to certain roles however, I’ve already added content using the custom post type and now I have to make them restricted. The capability_type was ‘post’
What I’m looking to do is completely hide the UI for a custom post type from specific user roles…Ive previously found many resources on how to disable access to using those CPTs but nothing that really allows you to completely hide the CPT UI all together based on what user is logged into the dashboard.
I have a large number of users with Editor Capabilities that help to go through the post submissions. This is my current setup for this role: