Custom Fields
Re-Envisioned
Support MB User Meta Set meta value of custom user field programmatically

This topic contains 2 replies, has 2 voices, and was last updated by  Anh Tran 7 months, 1 week ago.

  • Creator
    Topic
  • #11289
    Resolved
    Mauro
    Participant

    Hello Anh,
    In order to update custom fields programmatically, you mention we can use update_post_meta but what about user meta fields? How can I update these programmatically?
    I am unable to the answer anywhere in the documentation.

    Thanks,
    Mauro.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #11290

    Mauro
    Participant

    I’m trying with update_user_meta, seams the logic option 🙂

    #11305

    Anh Tran
    Keymaster

    Hi Mauro,

    update_user_meta is the way to go. Glad that you found it!

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.