WP_Meta_Query Generator May 16, 2019 Public Antonio Carreira Permalink Embed Code Or, embed this snippet using GenerateWP WordPress Plugin. Download Clone Meta Query User ID $meta_query = array( array( 'key' => 'user_id', 'value' => '$user_id', ), );