WordPress hook directory
get_meta_sql

Description

In function WP_Meta_Query::get_sql (which generates SQL clauses to be appended to a main query for advanced meta queries.), applied to the SQL JOIN and WHERE clause generated by the advanced meta query. Filter function arguments: array( compact( 'join', 'where' ), $this->queries, $type, $primary_table, $primary_id_column, $context )

This description was scraped automatically from the WordPress filter reference or action reference. If it looks like this is the wrong description, please tell me so I can fix my code.

WordPress version history for get_meta_sql

This database has information for all major versions from WP 1.2.1 through 5.1.

Version File Line Type
3.1 wp-includes/meta.php 445 View in context filter
3.2 wp-includes/meta.php 558 View in context filter
3.3 wp-includes/meta.php 787 View in context filter
3.4 wp-includes/meta.php 791 View in context filter
3.5 wp-includes/meta.php 830 View in context filter
3.6 wp-includes/meta.php 838 View in context filter
3.7 wp-includes/meta.php 862 View in context filter
3.8 wp-includes/meta.php 865 View in context filter
3.9 wp-includes/meta.php 1084 View in context filter
4.0 wp-includes/meta.php 1122 View in context filter
4.1 wp-includes/meta.php 1187 View in context filter
4.2 wp-includes/meta.php 1197 View in context filter
4.3 wp-includes/meta.php 1218 View in context filter
4.4 wp-includes/class-wp-meta-query.php 360 View in context filter
4.5 wp-includes/class-wp-meta-query.php 357 View in context filter
4.6 wp-includes/class-wp-meta-query.php 360 View in context filter
4.7 wp-includes/class-wp-meta-query.php 360 View in context filter
4.8 wp-includes/class-wp-meta-query.php 360 View in context filter
4.9 wp-includes/class-wp-meta-query.php 343 View in context filter
5.0 wp-includes/class-wp-meta-query.php 343 View in context filter
5.1 wp-includes/class-wp-meta-query.php 349 View in context filter

Related Hooks

We find related hooks using word stems. get_meta_sql has 2 significant word stem(s): meta, sql. Note that some of the hooks below may not appear in all versions of WP.