{$adjacent}_post_link
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
apply_filters( "{$adjacent}_post_link", string $output, string $format, string $link, WP_Post|string $post, string $adjacent )
Описание
Динамическая часть имени хука, $adjacent, обозначает тип соседства — 'next' или 'previous'.
Возможные имена хука:
next_post_link
previous_post_link
Оригинал (английский)
The dynamic portion of the hook name, $adjacent, refers to the type of adjacency, ‘next’ or ‘previous’.
Possible hook names include:
next_post_linkprevious_post_link
Динамические части имени
{$adjacent}- Динамическая часть имени хука, $adjacent, обозначает тип соседства — 'next' или 'previous'.
Фильтруемое значение
Параметры
$output
string
обязательный
$format
string
обязательный
$link
string
обязательный
$post
WP_Post|string
обязательный
$adjacent
string
обязательный
Исходный код
wp-includes/link-template.php:2396
return apply_filters( "{$adjacent}_post_link", $output, $format, $link, $post, $adjacent );
История изменений
| Версия | Описание |
|---|---|
| 4.2.0 | Added the $adjacent parameter. |
| 2.6.0 | Introduced. |

