admin管理员组

文章数量:1293644

$qry = new WP_Query(array(
      'post_type' => $this->type,
      'posts_per_page' => -1,
      'meta_query' => array(
        array(
          'key' => "_{$this->metaPrefix}_name",
          'value' => $style['name'],
          'compare' => '='
        ),
        array(
          'key' => "_{$this->metaPrefix}_created",
          'value' => $year,
          'compare' => '='
        )
      )
    ));
print_r($qry->request); die;

I am getting an empty string, is there a way to get something? Is there maybe a tool or something along that line or is this an expected behavior and I can do something to output the sql?

本文标签: Cannot get sql request from Query object