posts_where_paged хук-фильтр . WP 1.5.0
Filters the WHERE clause of the query.
Specifically for manipulating paging queries.
Использование
add_filter( 'posts_where_paged', 'filter_function_name_5793', 10, 2 ); function filter_function_name_5793( $where, $this ){ // filter... return $where; }
- $where(строка)
- The WHERE clause of the query.
- $this(WP_Query)
- The WP_Query instance (passed by reference).
Список изменений
С версии 1.5.0 | Введена. |
Где вызывается хук
posts_where_paged
wp-includes/class-wp-query.php 2698
$where = apply_filters_ref_array( 'posts_where_paged', array( $where, &$this ) );