Hi, I run the Theme My Login plugin on WordPress installation. Now, I try to update the user role on registration, but I cannot call my funtion via add_action('user_register', 'register_role') in functions.php:
`add_action('user_register', 'register_role');
function register_role($user_id) {
update_user_meta( $user_id, 'wp_capabilities', 'myrole' );
}
During registration via the register-form.php at ?page_id=117action=register the function is ignored.
What am I doing wrong? My intension is to set self-defined user roles on registration instead using the default role.
Already tried the "WP Roles at Registration" plugin which funtions neither.
Thanks for your help.