customizing user capabilities
-
I’m trying to limit the permissions to assign topic tags to just ‘keymasters’ through the bbp_get_caps_for_role filter.
This is working, participants can’t see or edit the tag input field
if ( $role == ‘bbp_participant’ ) {
$caps[‘assign_topic_tags’] = false;
}but the moderator level is ignored and not working:
if ( $role == ‘bbp_moderator’ ) {
$caps[‘assign_topic_tags’] = false;
}I’m a newbie to wordpress development & php. Any insight or advice would be much appreciated. Thanks.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.