wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



get_meta_sql › WordPress Filter Hooks

Seit3.1.0
Veraltetn/v
apply_filters_ref_array( 'get_meta_sql', array( $sql, $this->queries, $type, $primary_table, $primary_id_column, $context )
Parameter: (6)
  • (string[]) $sql Array containing the query's JOIN and WHERE clauses.
    Erforderlich: Ja
  • (array) $queries Array of meta queries.
    Erforderlich: Ja
  • (string) $type Type of meta. Possible values include but are not limited to 'post', 'comment', 'blog', 'term', and 'user'.
    Erforderlich: Ja
  • (string) $primary_table Primary table.
    Erforderlich: Ja
  • (string) $primary_id_column Primary column ID.
    Erforderlich: Ja
  • (object) $context The main query object that corresponds to the type, for example a `WP_Query`, `WP_User_Query`, or `WP_Site_Query`.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the meta query's generated SQL.





Quellcode

return apply_filters_ref_array( 'get_meta_sql', array( $sql, $this->queries, $type, $primary_table, $primary_id_column, $context ) );