wordpress / latest / hooks / posts_where_paged.html

apply_filters_ref_array( 'posts_where_paged', string $where, WP_Query $query )

Filters the WHERE clause of the query.

Description

Specifically for manipulating paging queries.

Parameters

$where string
The WHERE clause of the query.
$query WP_Query
The WP_Query instance (passed by reference).

Source

File: wp-includes/class-wp-query.php. View all references

$where = apply_filters_ref_array( 'posts_where_paged', array( $where, &$this ) );

Used By

Used By Description

Changelog

Version Description
1.5.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/posts_where_paged