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/filters.php

    r6583 r6675  
    6464add_filter( 'pre_handle_404',  'bbp_pre_handle_404',  10, 2 );
    6565add_action( 'posts_pre_query', 'bbp_posts_pre_query', 10, 2 );
     66
     67// User Creation
     68add_filter( 'signup_user_meta', 'bbp_user_add_role_to_signup_meta', 10 );
    6669
    6770/**
Note: See TracChangeset for help on using the changeset viewer.