{$adjacent}_image_link
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
apply_filters( "{$adjacent}_image_link", string $output, int $attachment_id, string|int[] $size, string $text )
Описание
Динамическая часть имени хука, $adjacent, обозначает тип соседства — либо ‘next’, либо ‘previous’.
Возможные имена хуков:
next_image_link
previous_image_link
Оригинал (английский)
The dynamic portion of the hook name, $adjacent, refers to the type of adjacency, either ‘next’, or ‘previous’.
Possible hook names include:
next_image_linkprevious_image_link
Динамические части имени
{$adjacent}- Динамическая часть имени хука, $adjacent, обозначает тип соседства — либо ‘next’, либо ‘previous’.
Фильтруемое значение
Параметры
$output
string
обязательный
$attachment_id
int
обязательный
$size
string|int[]
обязательный
$text
string
обязательный
Исходный код
wp-includes/media.php:3993
return apply_filters( "{$adjacent}_image_link", $output, $attachment_id, $size, $text );
История изменений
| Версия | Описание |
|---|---|
| 3.5.0 | Introduced. |

