{$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

Top ↑

Parameters

$link

(string)The relational link.


Top ↑

Source

File: wp-includes/link-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More