Uma área de pesquisa sobre o WordPress para devs e autores do tema



get_tax_sql ›

Desde3.1.0
Obsoleton/a
get_tax_sql ( $tax_query, $primary_table, $primary_id_column )
Parâmetros: (3)
  • (array) $tax_query A compact tax query
    Required: Yes
  • (string) $primary_table
    Required: Yes
  • (string) $primary_id_column
    Required: Yes
Ver:
  • WP_Tax_Query
Retorna:
  • (array)
Definido em:
Codex:

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



Fonte

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 );
}