- June 11, 2015 at 10:14 am #10894
I have a custom post type set up and checked enabled on the User Role Editor Pro settings page, and have that section enabled in a custom role. The role works fine when it is added to a user, and they are able to access the custom post type posts, etc., in the dashboard.
With that said, I am using the Post Types Order plugin, https://wordpress.org/plugins/post-types-order/ , and am trying to enable the custom role to access this functionality in that custom post type.
After going through a lot of trial and error I found the only setting that enables that role to be able to sort the order of posts for that custom post type is the switch_themes capability in the Themes section.
But the problem is, the switch_themes capability also adds switching themes to their capabilities, as well as brings WP Pages and Posts and Media with into the dashboard with the one ability to reorder them as well.
And so the obvious question, is there another way to do this so that it selectively enables that ability and detaches it from theme capabilities, or can you please perhaps add in the ability to more finely and selectively control Post Types Order capabilities into User Role Editor Pro…?
John.June 13, 2015 at 1:31 pm #11014
The custom post type capabilities work by mapping WordPress default capabilities into the custom post capabilities list. These default capabilities are predefined and sorting is not one of them. That’s why you don’t see a specific capability for the ordering. That is a custom functionality of that plugin. It is impossible to map custom capabilities created by plugins to its custom functionalities automatically.
I’m not sure why the author of that plugin would use switch_themes for this functionality. You can enable that capability and remove the admin menus enabled using menu editor. But still it won’t be able to remove all the functionalities enabled because of that capability.
Your best option is to contact the author of that plugin and ask him/her for the capabilities he/she is looking for and ask him if he/she can create a custom capability for it.
Sorry for the delayed response. For some reason I did not get a notification when this topic was created.
Let me know if you have any questions.
SyamJune 13, 2015 at 3:48 pm #11019
Thank you Syam for this clear explanation. I am using the Pro version of Post Types Order, and because they don’t have a support forum )-: I have used their contact form… Will see if they get back and what is said…
But also, thank you for the suggestion regarding the Admin Menu Editor plugin… I have installed the free version and have been able to set it up so this particular issue is resolved for now… I have been able to remove Pages, Posts and Appearances from the Admin menu for that particular user role…
John.June 13, 2015 at 3:55 pm #11020
User Role Editor also has a menu editor. Here is the documentation if you want to take a look.
ThanksJune 13, 2015 at 4:21 pm #11022
Oh, that is what you were pointing at… (-:
I have seen that part of User Role Editor, but never went really looking into it… I have deactivated the Admin Menu Editor plugin and set up the same thing with User Role Editor’s menu editor and it seems to be doing the job just as perfectly… And one less plugin is always nice…
And I am also now even more happy that I have purchased this wonderful plugin of yours…
The topic ‘Using User Role Editor Pro with Post Types Order…’ is closed to new replies.