Custom Fields
Re-Envisioned
Support MB User Meta Get User email info in Custom post meta

This topic contains 4 replies, has 2 voices, and was last updated by  AXEL PARATRE 2 months, 1 week ago.

  • Creator
    Topic
  • #15238

    AXEL PARATRE
    Participant

    Hi Anh,

    I try to get the email data in a custom post meta

    Il works for all data inside the table wp_user_meta but the email is in the wp_users table.

    Can you tell me how to get the email value from wp_users with MB User Meta ?

    Capture-2019-07-04-a-13-15-53

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #15252

    Anh Tran
    Keymaster

    You can get the email using this code:

    $user = wp_get_current_user();
    $email = $user->user_email;
    #15254

    AXEL PARATRE
    Participant

    Hi Anh,

    Thanks for your answer.
    I knew that I could get it by code. My question was about to get it directly via the MB Builder ?

    Thanks
    Adrien

    #15269

    Anh Tran
    Keymaster

    Hi Adrien,

    I’m afraid the plugin only supports static value. There’s no way to make it understand the dynamic value at the moment.

    #15280

    AXEL PARATRE
    Participant

    Thanks Anh,

    Maybe it could be a good evolution 🙂

    Regards
    Adrien

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

You must be logged in to reply to this topic.