Skip to:
Content

bbPress.org


Ignore:
Timestamp:
08/30/2017 05:10:33 AM (9 years ago)
Author:
johnjamesjacoby
Message:

Users: first pass at forum role selection on invite/add-new.

This change adds the ability to set a specific forum role when adding a new user. If no valid role is found or saved, the default role will be used by default. There is likely more to do here, to ensure auto-role continues to work as intended as well.

Trunk, for 2.6. See: #3157.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/core/actions.php

    r6585 r6675  
    388388add_action( 'clean_post_cache', 'bbp_clean_post_cache', 10, 2 );
    389389
     390// User Creation
     391add_action( 'invite_user',         'bbp_user_add_role_on_invite',   10, 3 );
     392add_action( 'wpmu_activate_user',  'bbp_user_add_role_on_activate', 10, 3 );
     393add_action( 'bbp_user_register',   'bbp_user_add_role_on_register', 10, 1 );
     394add_action( 'added_existing_user', 'bbp_user_add_role_on_register', 10, 1 );
     395add_action( 'register_new_user',   'bbp_user_add_role_on_register', 10, 1 );
     396
    390397/**
    391398 * bbPress needs to redirect the user around in a few different circumstances:
Note: See TracChangeset for help on using the changeset viewer.