1. 首页
  2. WordPress 函数手册

get_tax_sql()

get_tax_sql( array $tax_query, string $primary_table, string $primary_id_column )

给定分类查询,生成要附加到主查询的SQL。
Given a taxonomy query, generates SQL to be appended to a main query.

目录锚点:#说明#返回#源码#笔记


说明(Description)

另见函数 https://www.wp2.cn/functions()


返回(Return)

(array)


源码(Source)

get_tax_sql() 函数的代码位于 wp-includes/taxonomy.php540.
更新版本 源码位置 使用 被使用
3.1.0 wp-includes/taxonomy.php:769 0 1 function

笔记(Notes)

获取分类的SQL查询部分

get_tax_sql() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_tax_sql/