post_limits_request filter-hook . WP 2.5.0
Filters the LIMIT clause of the query.
For use by caching plugins.
Usage
add_filter( 'post_limits_request', 'filter_function_name_9376', 10, 2 ); function filter_function_name_9376( $limits, $this ){ // filter... return $limits; }
- $limits(string)
- The LIMIT clause of the query.
- $this(WP_Query)
- The WP_Query instance (passed by reference).
Changelog
Since 2.5.0 | Introduced. |
Where the hook is called
post_limits_request
wp-includes/class-wp-query.php 2882
$limits = apply_filters_ref_array( 'post_limits_request', array( $limits, &$this ) );