首页 WordPress函数大全 get_meta_sql()

get_meta_sql()

2020-05-01 / 2349阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

get_meta_sql( array $meta_query, string $type, string $primary_table, string $primary_id_column, object $context = null )

Given a meta query, generates SQL clauses to be appended to a main query.

描述

See also See also

  • WP_Meta_Query

Top ↑

参数

$meta_query

(array)
(Required)
A meta query.

$type

(string)
(Required)
Type of meta.

$primary_table

(string)
(Required)
Primary database table name.

$primary_id_column

(string)
(Required)
Primary ID column name.

$context

(object)
(Optional)
The main query object

Default value: null

返回

(array) Associative array of JOIN and WHERE SQL.

大家谈论
    我的见解