user role update notification
-
I have the “Members”-plugin installed. After updating bbPress and changing all roles of the users from “(wordpress-)”participants” into “subscribers”, the “participant”-roles of bbPress were empty. Now all subscribers can participate in the private forums. Not what I’ve had in mind…
But in my functions.php I have a script to notify users of their updated capabilities. It starts with:
function user_role_update( $user_id, $new_role ) {
if($new_role == 'bbp_participant') {
But that doesn’t seem to work anymore. Did the name of the bbPress participant role change? Will
function user_role_update( $user_id, $new_role ) {
if($new_role == 'participant') {
work?
- You must be logged in to reply to this topic.