Reply To: Ive deleted a user with the keymaster statut
Just had a chance to dig further into this – bbpress will only let a keymaster set another keymaster, so if you’re not a keymaster yourself then by default you can’t do this.
However this code should allow any admin to set a keymaster
add_filter( 'bbp_is_user_keymaster', 'rew_allow_keymaster', 10 , 3 );
function rew_allow_keymaster ($retval, $_user_id, $user_id) {
if (current_user_can( 'manage_options' )) $retval = true ;
return $retval ;
}
Put this in your child theme’s function file – or use
BUT THEN TAKE IT OUT AFTER you have set up another – as it makes all admins in effect keymasters.