{$adjacent}_post_rel_link WordPress Filter Hook
The {$adjacent}_post_rel_link WordPress hook is called when a link to the next or previous post is generated. This hook can be used to modify the URL or the link text.
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_link
previous_post_rel_link
Parameters
- $link
(string)The relational link.
Source
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |