WP hooks navigation: Home/browse • Actions index • Filters index
As of WP version 2.5, this hook has been renamed to get_{$adjacent}_post_sort.
In function get_previous_post (which finds the post before the currently-displayed post), applied to the SQL ORDER BY clause (which normally orders by post date in descending order with a limit of 1 post). Filter function arguments: ORDER BY clause.
This description was scraped automatically from the WordPress filter reference or action reference. If it looks like this is the wrong description, please tell me so I can fix my code.
This database has information for all major versions from WP 1.2.1 through 6.2.
Version | File | Line | Type | |
---|---|---|---|---|
2.1 | wp-includes/link-template.php | 301 | View in context | filter |
2.2 | wp-includes/link-template.php | 345 | View in context | filter |
2.3 | wp-includes/link-template.php | 386 | View in context | filter |
2.5 | Renamed. See get_{$adjacent}_post_sort |
We find related hooks using word stems. get_previous_post_sort has 3 significant word stem(s): previous
, post
, sort
. Note that some of the hooks below may not appear in all versions of WP.