posts_orderby_request WordPress Filter Hook
The posts_orderby_request hook is a filter hook that allows you to modify the SQL ORDER BY clause for the main query. This can be useful for customizing the order of posts in your Wordpress site.
apply_filters_ref_array( 'posts_orderby_request', string $orderby , WP_Query $query ) #
Filters the ORDER BY clause of the query.
Description
For use by caching plugins.
Parameters
Source
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |