Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: bbpress log in process

@robin-w

Moderator

you are right ! Looks like it change on 2.6.

It now does it on register

so to change back to how it used to work

in

dashboard>settings>forums untick Automatically give registered visitors…etc

Then put this in your child theme’s function file –

ie wp-content/themes/%your-theme-name%/functions.php

where %your-theme-name% is the name of your theme

or use

Code Snippets

add_action('wp_login', 'rew_add_role');

function 'rew_add_role' () {
	$user_id = $user->ID ; 
	$role = bbp_get_user_role( $user_id );
	if (empty($role)) {
		bbp_set_user_role( $user_id, 'bbp_participant' );
	}
}

This code is untested, but should work, if not come back

Skip to toolbar