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
Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.
We appreciate your patience and understanding while our team is away. Thank you for being part of the gVectors community!
Merry Christmas and Happy Holidays! 🎄
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