• I’d like to update some Ultimate Member custom fields for specific user IDs from within some of my custom scripts. Most examples I find seem to default to the ‘existing’ or ‘current’ user. Pseudo code below as to what I’m trying to do. Help?

        
    um_fetch_user("3848");
    $to_update[] = array('name_of_field' => 'its_value');
    um_update_profile($to_update);  // which um function to use? 
    
    //  do we need this too?  
    //  update_user_meta("3848", 'name_of_field','its_value');
    
Viewing 1 replies (of 1 total)
  • Thread Starter mkstebbins

    (@mkstebbins)

    Answering this myself:

    Using UM 2.0.43 It appears that merely updating wordpress user meta is enough and no UM functions are needed up set or update values of UM fields.

    update_user_meta("3848", 'name_of_field','its_value');

    • This reply was modified 4 years, 10 months ago by mkstebbins.
Viewing 1 replies (of 1 total)
  • The topic ‘Update custom UM field from within php’ is closed to new replies.