Created
February 12, 2020 15:42
-
-
Save nikitasinelnikov/f3d1dc43de6e7a99ae1da3b0f8280aea to your computer and use it in GitHub Desktop.
How to remove conflict with bbPress when it register user with Participant role
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function um_submit_form_register_remove_conflict() { | |
remove_action( 'user_register', 'bbp_user_register', 10 ); | |
} | |
add_action( 'um_submit_form_register', 'um_submit_form_register_remove_conflict', 9 ); | |
remove_action( 'bbp_profile_update', 'bbp_profile_update_role' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment