get_meta_sql
过滤钩子
apply_filters_ref_array( 'get_meta_sql', array( $sql, $this->queries, $type, $primary_table, $primary_id_column, $context )
- 参数
-
-
(string[])
$sql
Array containing the query’s JOIN and WHERE clauses.- Required: 是
-
(array)
$queries
Array of meta queries.- Required: 是
-
(string)
$type
Type of meta. Possible values include but are not limited
to ‘post’, ‘comment’, ‘blog’, ‘term’, and ‘user’.- Required: 是
-
(string)
$primary_table
Primary table.- Required: 是
-
(string)
$primary_id_column
Primary column ID.- Required: 是
-
(object)
$context
The main query object that corresponds to the type, for
example a `WP_Query`, `WP_User_Query`, or `WP_Site_Query`.- Required: 是
-
(string[])
- 定义位置
-
-
wp-includes/class-wp-meta-query.php
, line 394
-
wp-includes/class-wp-meta-query.php
- 引入
- 3.1.0
- 弃用
- –
Filters the meta query’s generated SQL.
return apply_filters_ref_array( 'get_meta_sql', array( $sql, $this->queries, $type, $primary_table, $primary_id_column, $context ) );
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。