posts_where_request хук-фильтр . WP 2.5.0
Filters the WHERE clause of the query.
For use by caching plugins.
Использование
add_filter( 'posts_where_request', 'filter_function_name_3263', 10, 2 ); function filter_function_name_3263( $where, $this ){ // filter... return $where; }
- $where(строка)
- The WHERE clause of the query.
- $this(WP_Query)
- The WP_Query instance (passed by reference).
Список изменений
С версии 2.5.0 | Введена. |
Где вызывается хук
posts_where_request
wp-includes/class-wp-query.php 2810
$where = apply_filters_ref_array( 'posts_where_request', array( $where, &$this ) );