Hi praco,
Thanks!
It depends. Can you explain in more detail what you are trying to do in regards to user roles?
Cheers
Florian
Thread Starter
praco
(@praco)
I would like to use the user role editor plugin and enable the use of the picu for the editor role. At this moment I do not have such a possibility in the user role plugin.
Hey praco,
sorry for the delayed response on our part.
There is no fine grained capability management in place as of yet.
But we have a filter, with which you can set the capability, which a user must have to access picu.
For example, use the following code in your theme’s functions.php file to allow picu access for users with the “edit_posts” capability (which an editor usually has):
function my_custom_picu_capability() {
return 'edit_posts';
}
add_filter( 'picu_capability', 'my_custom_picu_capability' );
Hope that helps!
Cheers
Florian
Thread Starter
praco
(@praco)
That actually helped a lot. Thanks!