Skip to content

Instantly share code, notes, and snippets.

@chazzzzy chazzzzy/um-roles-functions.php Secret
Last active Nov 24, 2015

What would you like to do?
Ultimate Member Roles for Writing and Press-This
add_action('um_after_user_is_approved', 'wp_role_contributor_after_um', 99 );
function wp_role_contributor_after_um( $user_id ) {
$wp_user_object = new WP_User( $user_id );
$wp_user_object->set_role( 'contributor' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.