• Resolved ali abdi

    (@aliabdi7496)


    Hello,
    I have created a custom field named “fish_link” in the profile form
    Now I want to update it through WordPress or Ultimate Member functions

    I can get the created field data with the “$fish_link = um_user(‘fish_link’);”, but with “update_user_meta($userID, ‘fish_link’, $value);” can not be updated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • @aliabdi7496

    Did you remove the UM cache for this user after updating the meta value?

    UM()->user()->remove_cache( $user_id );

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Thanks for letting us know that Missveronica’s solutions resolved the issue.

    Regards,

    same problem

    where should I add UM()->user()->remove_cache( $user_id );

    I have created two drop-down custom fields in registration form but second field not registered

    • This reply was modified 2 years, 11 months ago by mj asia.
    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @javad-asia

    Please try disabling the user cache in WP Admin > Ultimate Member > Settings > Misc > Disable Cache User Profile.

    Regards,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Update custom field in Ultimate Member’ is closed to new replies.