Filters the LIMIT clause of the query.
Parameters
Source
$limits = apply_filters_ref_array( 'post_limits', array( $limits, &$this ) );
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |
Filters the LIMIT clause of the query.
$limits = apply_filters_ref_array( 'post_limits', array( $limits, &$this ) );
Version | Description |
---|---|
2.1.0 | Introduced. |
You must log in before being able to contribute a note or feedback.
Example migrated from Codex:
The example below allows your query to return 25 results only for the search page. All other queries will continue to return the default value.