• Hi, I have a problem – I can refer to fields such as “user_login” by ‘ . $current_user->user_login . ‘ and now I would like to refer in the same way to other fields.
    Example:
    I have a field named “company”
    How can I make something like this: ‘ . $current_user->company . ‘?

    • This topic was modified 8 years, 3 months ago by kjagiello.
Viewing 1 replies (of 1 total)
  • Plugin Author xnau webdesign

    (@xnau)

    You con only access the normal public properties of the WP_User object.

    If you know how to set up a WordPress filter, there is a filter called ‘pdb-dynamic_value’ that would allow you to use any key in there and then your filter can find the value you’re looking for, including custom fields.

Viewing 1 replies (of 1 total)
  • The topic ‘Refer to own fields’ is closed to new replies.