1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Get user by custom field

Discussion in 'XenForo Development Discussions' started by LandNetwork, Jul 28, 2016.

  1. LandNetwork

    LandNetwork Member

    I want to get user(s) by a custom field, as a XF User_Model object in PHP, where I can say:

    'Hey, get the user that has their Minecraft UUID as someuuid in the custom field mcuuid'.

    Any ideas? Google is no help.
  2. LandNetwork

    LandNetwork Member

    I need to get XenForo user by their user ID now in PHP. Anybody? I can only find by username.
  3. Snog

    Snog Well-Known Member

    Check library/XenForo/Model/User.php.
  4. LandNetwork

    LandNetwork Member

    It literally is ->getUserById(). Couldn't find it documented anywhere, though!
    Thanks, @Snog .

Share This Page