post_limits_request
Filters the LIMIT clause of the query.
For use by caching plugins.
Использование
add_filter( 'post_limits_request', 'wp_kama_post_limits_request_filter' );
/**
* Function for `post_limits_request` filter-hook.
*
* @param string $limits The LIMIT clause of the query.
*
* @return string
*/
function wp_kama_post_limits_request_filter( $limits ){
// filter...
return $limits;
}
- $limits(строка)
- The LIMIT clause of the query.
Список изменений
| С версии 2.5.0 | Введена. |
Где вызывается хук
post_limits_request
wp-includes/class-wp-query.php 3126
$limits = apply_filters_ref_array( 'post_limits_request', array( $limits, &$this ) );