WP_Meta_Query Generator January 3, 2020 Public Joseph McClellan Permalink Embed Code Or, embed this snippet using GenerateWP WordPress Plugin. Download Clone course id query custom woo attribute $meta_query = array( array( 'key' => 'pa_course-id', 'value' => '$current_course_ID', ), );