Timeline for Custom User role not working with custom post type
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 22, 2016 at 14:50 | comment | added | Nathan Powell | Let us continue this discussion in chat. | |
Mar 22, 2016 at 14:50 | comment | added | steamfunk | I have removed any cap that has the words other in it, so that the adoption_agency does not have any control of others adoptions. admins have the cap edit_others_adoptions while the adoption_agency does not. Am i missing something here? | |
Mar 22, 2016 at 14:47 | comment | added | Nathan Powell |
You will want to be sure to edit the adoption_agency role capabilities appropriately.
|
|
Mar 22, 2016 at 14:44 | comment | added | steamfunk | so basically i would have to do my own mapping. I have removed the line 'map_meta_cap' => true, and added the add_filter( 'map_meta_cap... but it is still not working. It is still allowing the adoption_agency user to have full control. | |
Mar 22, 2016 at 14:39 | comment | added | Nathan Powell | Basically, this allows the capability only when the specific post type is being manipulated. Hope that makes sense, and you get to your goal. | |
Mar 22, 2016 at 14:28 | comment | added | Nathan Powell |
Ok, yes. You will want to then REMOVE the map_meta_cap line, and custom map like explained here: justintadlock.com/archives/2010/07/10/…
|
|
Mar 22, 2016 at 14:25 | comment | added | steamfunk | Thanks Nathan, forgot to add the 'capability_type' => array('adoption', 'adoptions'), 'map_meta_cap' => true, however i am still having an issue. the "adoption_agency" user is able to edit admin and shop_manager posts. do you have an idea why? | |
Mar 22, 2016 at 2:19 | history | answered | Nathan Powell | CC BY-SA 3.0 |