I agree with @Simon Blackbourn, but for arguments sake, here’s one technique:
$data = get_user_meta( $user_id );
$data = wp_list_filter( $data, array( 'ive-read-this' ) );
$keys = array_keys( $data );
Related Posts:
- How can I create a meta_query with an array as meta_field?
- How can I query all users who registered today?
- WordPress creating excessive joins on meta_query with search
- How to display liked posts of current user in wordpress?
- How can I apply a meta query for a single custom post type in the main query?
- Select User by Joining Multiple Meta Value Results
- How do I find if a page has a template?
- How to check current user in meta value array in WP_Query meta_query
- Query metas (and not : query posts by metas)
- How to orderby multiple meta fields with another meta query
- Plugin will sort users by usermeta
- Query returning same results even though the ID changes
- Problem when try to add ++1 for user meta
- Order by meta value pro first then meta value free in my search function
- get_users with array as meta_value
- How to exclude posts for current user
- Query Nickname rather than Display Name in custom Woocommerce plugin
- get_post_meta with WP_query
- WordPress Mysql query and Duplicate
- Combining two meta_values within one row with query
- How to “orderby” the first array in a meta_query that uses multiply keys?
- meta_query not working
- How to do WP_User_Query for Nested Array value Inside Nested Array field
- WordPress query: merge meta key (number) values and sort
- Restrict WordPress search to a single ACF field
- How to do a sql like query on serialized data of user meta data
- Is there any way to get all custom posts and all custom terms with it’s meta in few queries?
- Fastest and most efficient SQL query to check if UID exists
- Query Posts that have or don’t have a meta_value and order by the same ASC
- Querying users by meta value and getting a strange answer
- What is the best way to query posts based on live data?
- Update vs Insert logic but the last key is always inserted?
- WP_Query orderby meta key/value suddely stopped working
- Meta Query compare with LIKE pulls similar post types: 55 and 155, and 1,155
- How to Optimize WP site for millions of posts
- Query WooCommerce orders where meta data does not exist
- How many WordPress SQL Queries per page?
- Advanced Custom Fields – Query Efficiency
- Finding all results from database within 500 miles of the given latitude and longitude [closed]
- How to display lastest post date in the homepage?
- How to tell if $query_var isset?
- Sorting Grids with Essential Grid and Events Manger
- The use of including upgrade.php when building custom queries
- Get the timout value of a saved transient?
- Does meta_query work within get_posts array?
- Slow meta_query with about 4 milion record on wp_postmeta
- How to show more than 5 posts?
- WP Query Sort by meta value (date)
- mySQL query. ORDER BY meta_key
- WP User Query fails when searching meta queries and search columns
- how to query multiple categories in wordpress?
- Strange string in console from wpdb query
- Update slug (URL) of pending posts via phpMyAdmin
- Select query for a login
- What’s wrong with my $wpdb prepare?
- $wpdb query a post type within a specific taxonomy term while ordering posts by custom meta value?
- where should I reset query after using get_results?
- WP_user_query throws a 404 error
- Exclude featured image and custom field from this get_attachment query
- wpdb print all post meta
- Form and custom query problem
- How to write: $wpdb->update having WHERE NOT value pair in the array
- Exclude all sticky posts front page twenty twelve
- get csv of users with user_meta
- Custom SQL Query passing array to WHERE p.id
- User Meta Value not echoing despite Var_Dump Showing correct string
- Query posts dynamic date range
- Parse query filter in wordpress and relation
- get posts by tag to showing in a widget
- Mysql query not working on WordPress 4.2.2
- List WordPress Post and Related Attachments outside of a post page
- Excluding posts by meta, and also keeping posts without the meta
- How properly create a blog template for wordpress?
- Is there a way to add a link directly into this media query?
- Problem on displaying the results on my query
- Improve performance of slow query
- WordPress search in modified post title
- Cannot get sql request from Query object?
- get_user can’t read variable
- Meta query and compare “!=” not working as expected
- Question about of query
- Strange results from WP_Query
- Modify behaviour of “s” parameter in wp_query
- Get meta_query value by user meta array
- How to make MySQL search queries with quotes
- Limiting a filtered query
- Archive query not working correctly
- Custom MySQL Query for Post and Post Meta
- Displaying popular posts
- Find all posts via SQL beginning with A of type B
- learn to run wpdb class
- Display old posts if no future posts exist
- If more than 1 image show post link?
- Rewrite Query_Var URL Parameter with Slug
- How to specify what kind of is_single post?
- Can’t See Media Queries with Inspect Tool [closed]
- Print data from wordpress sql query
- Can I create my own query in wordpress with traditional methods?
- ‘Active lotteries’ only custom query for woocommerce lottery plugin and elementor
- How to show sticky posts on all pages of the pagination, not just the first page?