You may update your query like this :
get_users(
array(
'number' => 1,
'count_total' => false,
'meta_query'=> array(
array(
'key' => 'egt_session_key',
'compare' => '=',
'value' => 'some_custom_field_data'
)
)
)
)
Related Posts:
- ACF: How to get the full field name (meta_key) by a field key?
- WP_User_Query pulling ACF to loop
- ACF: How to get users with a ACF flexible content subfield with a specific value AND layout?
- Advanced Custom Fields: how do I check to see if a value is set in an field? [closed]
- Advanced Custom Fields – Get custom fields from parent page
- Add custom field to the archive page?
- Matching Serialized Arrays with meta_query
- Can I count the number of users matching a value in a multiple value key?
- Save custom user meta on registration
- How to get users by a custom field / by user meta data?
- Display post_object content using Advanced Custom Fields plugin
- Remove old custom field after import
- Unable to get Preview of Uploaded image within a Custom Meta box
- Show User Their Password
- Change content before writing to database
- Order Custom post type loop by custom field (datepicker)
- Using Custom Function With Advanced Custom Fields
- How can I sort get_users() by any value (last_name, user defined fields and more)
- Displaying additional User Contact Information
- get_user_meta Short Profile Section
- Unable to show ACF’s Image Custom Field properly in Genesis Framework [closed]
- Login & Register & Custom details WITHOUT plugin
- meta_query for a string inside a meta field containing a comma-separated list
- How to update custom user meta field in wp?
- Update posts after populating ACF field value [closed]
- WP Custom Fields Metabox Disappears – ACF plugin issue [closed]
- Transfer self made functions.php custom fields to Advanced Custom Fields [closed]
- How do I create a column in Users list and display user data from custom registration field
- Will loading too many ACF Fields cause slow down?
- query usermeta from custom field
- custom avatar removal
- Calling the “wp-link-wrap” pop-up modal
- Add new image block, set default class name and update it using Javascript
- Get an advanced custom field after post publish
- How to create a dropdown select of all items in an ACF field group
- WooCommerce – Adding Custom Fields To Invoice
- How to add upload video option in wordpress for user?
- Sort custom post type by multiple custom fields
- Advanced Custom Fields WYSIWYG More tag
- How to list Category list in ACF Pro’s Select Field to choose from [closed]
- Custom fields issue [closed]
- Querying posts by latitude and longitude to build a Google Maps with several markers
- How to add fields in custom registration form, validate it and aave to db? [closed]
- check for duplicate user meta data before updating
- How to copy data from a custom field to the post_content?
- Increment user meta data by 1 each time a page is visited
- Front-End User Profile
- ul list with only as many li’s as filled custom fields
- How to update user profile custom fields
- Display custom field from the front page on another page
- Filter posts by custom field (Advanced Custom Fields)
- How can I output the custom fields wrapping with HTML
- Displaying an ACF list of users
- The conditional logic only works to show or hide?
- ACF Plugin How to make the customer add more fields in the post?
- How to get custom image field of specific post id
- Display Additional Info
- How To Save Data From Remote APIs To ACF?
- comments_where Hook
- Rewrite comment form post ID on submit
- Add WordPress user custom meta to chartjs vertically stacked chart in Divi theme
- What am I missing in this Code Block?
- How to show ACF fields in Gridbuilder custom block
- Problem with revisions only returning four results
- How to set up page fields with gutenberg instead of ACF
- How to get data from user meta custom fields created with acf-pro plugin?
- How to save multiple values with same meta_key, each value linked to another tag id
- Shortcode for Custom Field of Media Attachment (to use with Featured Images)
- ACF multi taxonomy on filterable gallery
- Is there any way to make a custom field for a post only if the author is a certain user?
- How to use ACF with javascript to update custom field values?
- adding autosave feature to custom fields
- author.php not showing content if Author has no Posts
- Autofill advanced custom field with user data
- select user with all meta field and field value. I am use Below Query for this ,So any of know another way to fast query instead of below query?
- How to delete attachments associated with custom field type when post property changes? [closed]
- Counting number of images from loop
- Page template is missing fields or is invalid when I updating the template
- Advanced Custom Fields from Category – IF statement
- Redirecting to an external URL
- Extend WP_User_Query or WP_User to return all custom fields?
- Populate a select box with data stored in the database?
- Display Child Page with custom fields within Parent Page
- WordPress taxonomy child image
- Create custom fields/meta data gender+country – radiobuttons and dropdown on register screen for these fields
- Filter and display a specific custom field value [closed]
- Is it possible in WordPress
- wordpress simple post multi rating with post_meta and user_meta
- How to filter post using custom feild value in shortest and longest duration?
- Query Posts Via WordPress URL
- Get custom field from other post in carousel
- I want to add a custom field in the rss title of each post, but don’t want it to be shown on the site
- How do i get a specific user metadata using custom metavalue outside of wordpress?
- Update field name without losing the value
- Custom registration form and custom field
- Can’t sort custom column on user.php by number / meta_value_num?
- Truncating characters in Advanced Custom Fields works some places but not others?
- save all acf options in one meta_value [closed]
- Best way for managing images of ads banners
- ACF in radio button cf7