WordPress at a glance
function is not described

get_tax_sql() WP 3.1.0

Given a taxonomy query, generates SQL to be appended to a main query.

No Hooks.

Return

Array.

Usage

get_tax_sql( $tax_query, $primary_table, $primary_id_column );
$tax_query(array) (required)
A compact tax query
$primary_table(string) (required)
$primary_id_column(string) (required)

Notes

Changelog

Since 3.1.0 Introduced.

Code of get tax sql: wp-includes/taxonomy.php WP 5.2.2

<?php
function get_tax_sql( $tax_query, $primary_table, $primary_id_column ) {
	$tax_query_obj = new WP_Tax_Query( $tax_query );
	return $tax_query_obj->get_sql( $primary_table, $primary_id_column );
}