(adjacent)_post_rel_link хук-фильтрWP 2.8.0

Filters the adjacent post relational link.

The dynamic portion of the hook name, $adjacent, refers to the type of adjacency, 'next' or 'previous'.

Possible hook names include:

Использование

add_filter( '(adjacent)_post_rel_link', 'wp_kama_adjacent_post_rel_link_filter' );

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

	// filter...
	return $link;
}
$link(строка)
The relational link.

Список изменений

С версии 2.8.0 Введена.

Где вызывается хук

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

Где используется хук в WordPress

Использование не найдено.