next_post_rel_link filter-hookWP 2.8.0

Filters the adjacent post relational link.

This is one of the variants of the dynamic hook (adjacent)_post_rel_link

Usage

add_filter( 'next_post_rel_link', 'wp_kama_next_post_rel_link_filter' );

/**
 * Function for `next_post_rel_link` filter-hook.
 * 
 * @param string $link The relational link.
 *
 * @return string
 */
function wp_kama_next_post_rel_link_filter( $link ){

	// filter...
	return $link;
}
$link(string)
The relational link.

Changelog

Since 2.8.0 Introduced.

Where the hook is called

get_adjacent_post_rel_link()
next_post_rel_link
wp-includes/link-template.php 2086
return apply_filters( "{$adjacent}_post_rel_link", $link );

Where the hook is used in WordPress

Usage not found.