Solved.
The capability to edit anothers “posts” in yada wiki is “Edit published pages”.
thanks.
Guilherme Dakuzaku
Plugin Author
dmccan
(@dmccan)
Hi Guilherme,
I installed the plugin User Role Editor:
https://ww.wp.xz.cn/plugins/user-role-editor/
I created a role of ‘Wiki Editor’ to experiment. Giving the user the role ‘edit_published_pages’ didn’t work for me.
In the plugin file ‘register-wiki-cpt.php’ the capability_type is ‘post’. Yada Wiki doesn’t create or assign any roles, just uses the built-in WordPress permissions based on ‘posts’.
If you give your new role ‘edit_posts’, ‘edit_others_posts’ and ‘edit_published_posts’ then users should be able to edit wiki pages. That is what worked for me.
‘edit_posts’ lets them create their own posts.
‘edit_others_posts’ lets them edit other people’s posts that are not yet published.
‘edit_published_posts’ will let them edit other people’s posts that have been published.
I hope this helps.
Best regards,
David