posts_request_ids filter-hook . WP 3.4.0
Filters the Post IDs SQL request before sending.
Usage
add_filter( 'posts_request_ids', 'filter_function_name_3675', 10, 2 ); function filter_function_name_3675( $request, $this ){ // filter... return $request; }
- $request(string)
- The post ID request.
- $this(WP_Query)
- The WP_Query instance.
Changelog
Since 3.4.0 | Introduced. |
Where the hook is called
posts_request_ids
wp-includes/class-wp-query.php 3014
$this->request = apply_filters( 'posts_request_ids', $this->request, $this );