src/WPametu/API/QueryHighJack.php
protected function add_meta_query( \WP_Query &$wp_query, array $meta_query ){
        $old_query = (array) $wp_query->get('meta_query');
        array_push($old_query, $meta_query);
        $wp_query->set('meta_query', $old_query);
    }
protected function add_meta_query( \WP_Query &$wp_query, array $meta_query ){
        $old_query = (array) $wp_query->get('meta_query');
        array_push($old_query, $meta_query);
        $wp_query->set('meta_query', $old_query);
    }
protected function add_meta_query ( \ WP_Query & $ wp_query , array $ meta_query ) { $ old_query = ( array ) $ wp_query -> get ( 'meta_query' ) ; array_push ( $ old_query , $ meta_query ) ; $ wp_query -> set ( 'meta_query' , $ old_query ) ; }
Add meta query

@param \WP_Query $wp_query
@param array $meta_query
Add meta query