On this page
apply_filters( "{$adjacent}_post_rel_link", string $link )
Filters the adjacent post relational link.
Description
The dynamic portion of the hook name, $adjacent, refers to the type of adjacency, ‘next’ or ‘previous’.
Possible hook names include:
next_post_rel_linkprevious_post_rel_link
Parameters
$linkstring-
The relational link.
Source
File: wp-includes/link-template.php. View all references
return apply_filters( "{$adjacent}_post_rel_link", $link );
Related
Used By
| Used By | Description |
|---|---|
| get_adjacent_post_rel_link() wp-includes/link-template.php | Retrieves the adjacent post relational link. |
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/adjacent_post_rel_link