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]
- Where are custom field values stored in the database
- 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?
- How to position a custom field before the editor
- 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
- How do you add a custom option to user data?
- Unable to get Preview of Uploaded image within a Custom Meta box
- Retrieve custom fields on Categories, using WP-API
- Order by custom field date?
- Show User Their Password
- How to update serialized data in the user meta data
- Change content before writing to database
- Order Custom post type loop by custom field (datepicker)
- Using Custom Function With Advanced Custom Fields
- automatically set “Featured Image” the same as the og:i that is set in a custom field
- Problem with adding exta field in metabox in custom post type
- How can I sort get_users() by any value (last_name, user defined fields and more)
- Copying Custom Meta Values from existing post to a duplicate post
- Calculate the sum of certain the_sub_fields
- Displaying Custom Fields on Post with Genesis Child Theme
- 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
- Send Multiple Custom Field Values Through the URL
- ACF won’t load from a custom JSON location
- Separate table or usermeta
- meta_query for a string inside a meta field containing a comma-separated list
- How to update custom user meta field in wp?
- Show ACF fields only on certain page in the backend
- Update posts after populating ACF field value [closed]
- How can I pass a variable set by ACF to header.php?
- WP Custom Fields Metabox Disappears – ACF plugin issue [closed]
- Transfer self made functions.php custom fields to Advanced Custom Fields [closed]
- WordPress User Profile Upload – If page is saved file reset
- Dynamically fill a post custom field with post publish date
- How do I create a column in Users list and display user data from custom registration field
- How can I store a file in the database in the same way WordPress and ACF do?
- Will loading too many ACF Fields cause slow down?
- How to save multiple options from a dropdown in user profile
- Users Select inside custom metabox
- query usermeta from custom field
- custom avatar removal
- Calling the “wp-link-wrap” pop-up modal
- Print custom field in Query Loop block
- How to add Advenced Custom Fields In Single Post
- How to schedule a custom field value update?
- Order RSS content by an advanced custom field value
- 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
- Advanced Custom Fields dynamic update_field
- WooCommerce – Adding Custom Fields To Invoice
- How to add upload video option in wordpress for user?
- Passing args to WP_User_Query am I using meta correctly?
- Sort custom post type by multiple custom fields
- How to save the date/time of last update of an extra user profile field?
- Vimeo thumbnails
- Advanced Custom Fields WYSIWYG More tag
- Walker class for sub-menu with ACF fields
- How to list Category list in ACF Pro’s Select Field to choose from [closed]
- Get all the posts where meta field with multiple choice has several values checked
- Show image if author meta (profile fields) exists outside loop
- 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
- Custom Field Repeating When Using foreach
- How to copy data from a custom field to the post_content?
- Increment user meta data by 1 each time a page is visited
- WordPress creates new lines in postmeta table on post update
- Front-End User Profile
- ul list with only as many li’s as filled custom fields
- Get emails from users by custom field SQL
- Retrive Image URL of Custom Fields in Theme
- award points to a user each time they update their cpt post
- How to update user profile custom fields
- Display custom field from the front page on another page
- How to Pass values to Custom Field through PHP in WordPress Posts?
- Let Users Filter Posts by Custom Fields
- Filter posts by custom field (Advanced Custom Fields)
- Advanced Custom fields not available yet during publish_page action
- 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?
- Custom field Search with Relavanssi
- How to get custom image field of specific post id
- Save custom field types with this function…?
- Display Additional Info
- Populate custom checkout fields with data from previous orders