Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: No New posts for members


livibetter
Member

@livibetter

<?php
/*
Plugin Name: NoNewsPostsForMembers
Plugin URI: https://bbpress.org/forums/topic/no-new-posts-for-members
Description: No New posts for members
*/

function NoNewsPostsForMembers($roles) {
$roles['member']['capabilities']['write_posts'] = false;
return $roles;
}

add_filter('get_roles', 'NoNewsPostsForMembers');
?>

Put it in my-plugins with any filename.php you like. Activate it. Then this should work.

Skip to toolbar