Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function set_bbp_role( $user_id, $action ) {
- if( isset( $_GET['bbp_role'] ) ) {
- bbp_set_user_role( $user_id, $_GET['bbp_role'] );
- }
- }
- add_action( 'wpf_api_success', 'set_bbp_role', 10, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement