📜  sql 查询传递 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:06.992000             🧑  作者: Mango

代码示例1
$meta_query_args = array(
    'relation' => 'OR', // Optional, defaults to "AND"
    array(
        'key'     => '_my_custom_key',
        'value'   => 'Value I am looking for',
        'compare' => '='
    )
);
$meta_query = new WP_Meta_Query( $meta_query_args );