WordPress как на ладони
wordpress jino
фильтр не описан

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_6173', 10, 2 );
function filter_function_name_6173( $where, $this ){
	// filter...

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

Связи хука

Используется в: WP_Query::get_posts()

Остальные хуки из: WP_Query::get_posts():

Кусок кода с хуком

Фрагмент из: wp-includes/class-wp-query.php WP 4.9
...
		/*
		 * Apply post-paging filters on where and join. Only plugins that
		 * manipulate paging queries should use these hooks.
		 */
		if ( !$q['suppress_filters'] ) {
			/**
			 * Filters the WHERE clause of the query.
			 *
			 * Specifically for manipulating paging queries.
			 *
			 * @since 1.5.0
			 *
			 * @param string   $where The WHERE clause of the query.
			 * @param WP_Query $this The WP_Query instance (passed by reference).
			 */
			$where = apply_filters_ref_array( 'posts_where_paged', array( $where, &$this ) );

			/**
			 * Filters the GROUP BY clause of the query.
			 *
			 * @since 2.0.0
			 *
			 * @param string   $groupby The GROUP BY clause of the query.
			 * @param WP_Query $this    The WP_Query instance (passed by reference).
			 */
			$groupby = apply_filters_ref_array( 'posts_groupby', array( $groupby, &$this ) );

			/**
			 * Filters the JOIN clause of the query.
			 *
			 * Specifically for manipulating paging queries.
...