Skip to:
Content
Pages
Categories
Search
Top
Bottom

Remove moderator permission to delete topics and posts


  • Remco Beugels
    Participant

    @remcob00

    I want want to remove the permission that moderators can delete topics and posts from the trash. But how can I change the standard permissions from bbPress?

    I made this code but it doesn’t work because bbPress roles are separated from WordPress roles:

    function changePermissions() {
    	$role = get_role('moderater');
    	$role->remove_cap('delete_others_topics');
    	$role->remove_cap('delete_others_replies');
    }
    add_action('init', 'changePermissions');
  • You must be logged in to reply to this topic.
Skip to toolbar