Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: (yet another) integration bug, no Role set on registration

Detective, thanks a lot!!!

It solved my problem ( wp 2.5.1, bbpress 0.9.0.2)

Bo Fiddlesticks, you should save code in set-default-role.php file, put it in bb-plugins and activate

<?php
/*
Plugin Name: bbpress wpmu default role
Plugin URI: https://bbpress.org/forums/topic/yet-another-integration-bug-no-role-set-on-registration?replies=5
Description: Sets a default WPMU role for all new bbpress users.
Author: Detective
Author URI: http://www.ryuuko.cl/
*/

function wpbb_add_user_role_rk($user_id) {
$user = new WP_User($user_id);
$user->set_role(get_option('default_role'));
}
add_action( 'bb_new_user', 'wpbb_add_user_role_rk');
?>

Skip to toolbar