Page 1 of 1

Retrieving member user_ids that match certain fields

PostPosted: January 16th, 2011, 1:36 pm
by dwdutch
Short of writing a database query, is there an existing function that will retrieve an array of user_IDs for those members that match certain custom registration fields?

I imagine it would work something like below:

Code: Select all
$field = 'favorite-fruit';
$fieldValue = 'apple';
$user_ids = get_S2custom_field($field, $fieldValue);