Skip to content

Instantly share code, notes, and snippets.

@nikitasinelnikov
Created February 12, 2020 15:42
Show Gist options
  • Save nikitasinelnikov/f3d1dc43de6e7a99ae1da3b0f8280aea to your computer and use it in GitHub Desktop.
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
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