Ok. Can you please provide a snippet so that moderation is linked to admin+editor roles and not to a specific capability.
Thanks in advance
Ok. Can you please provide a snippet so that moderation is linked to admin+editor roles and not to a specific capability.
Thanks in advance
the problem is not the plugin, the problem is your plugin moderation is linked to a capability shared by several roles, it is not linked to roles. Can you tell me the capability you use ?
Hi, I am sorry but I removed these capabilities but "inscrits" can still moderate comments
I put this in functions.php (child theme)
// remove inscrits capabilities
function remove_inscrits_moderate_comments(){
global $wp_roles;
$wp_roles->remove_cap( 'inscrits', 'moderate_comments' );
}
function remove_inscrits_edit_comment(){
global $wp_roles;
$wp_roles->remove_cap( 'inscrits', 'edit_comment' );
}
Can you please help solve this issue.
Regards
Eric
I put them in my functions.php
Ok, I will try that and see how it goes
Anyway I found a fix : I edited the php file to modify capabilities conditions to 'moderate_comments AND edit_comment' instead of OR
Best regards