public function __construct( $tax_query ) { if ( isset( $tax_query['relation'
] ) ) { $this->relation =
$this->
sanitize_relation( $tax_query['relation'
] );
} else { $this->relation = 'AND';
} $this->queries =
$this->
sanitize_query( $tax_query );
} /**
* Ensures the 'tax_query' argument passed to the class constructor is well-formed.
*
* Ensures that each query-level clause has a 'relation' key, and that
* each first-order clause contains all the necessary keys from `$defaults`.
*
* @since 4.1.0
*
* @param array $queries Array of queries clauses.
* @return array Sanitized array of query clauses.
*/