granis
Member
Hey there,
I am trying to search for all users that have a specific value in a specific custom field.
I guess my non-working code shows best what I am trying to do:
Also, how does the customFieldsExact work?
I am trying to search for all users that have a specific value in a specific custom field.
I guess my non-working code shows best what I am trying to do:
PHP:
$userModel = new XenForo_Model_User();
$criteria = array(
'customFields' => array("my_custom_field" => "bunny"),
);
$options = array(
'join' => XenForo_Model_User::FETCH_USER_PROFILE,
);
$users = $userModel->getUsers($criteria, $options);
Also, how does the customFieldsExact work?