• Resolved Hughsp

    (@rescaes)


    Hi team,

    Congrats on this plugin, I’m testing it for my site and for the moment fits almost all needs! I’m trying however to assign a specific role based on several possible values of a custom field (that will be updated very frequently)… Could you please point me in the right database entry, hooks or any other steps to use/follow?

    Thanks in advance!

    • This topic was modified 1 year, 1 month ago by Hughsp.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support andrewshu

    (@andrewshu)

    Hello @rescaes

    You could use this hook after registration is complete.

    function my_um_user_register( $user_id, $args, $form_data ) {
    	 // your code here
    }
    add_action( 'um_user_register', 'my_um_user_register', 10, 3 );

    Regards.

    Thread Starter Hughsp

    (@rescaes)

    thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Assign role on registration’ is closed to new replies.