W3cubDocs

/WordPress

apply_filters( "{$adjacent}_image_link", string $output, int $attachment_id, string $size, string $text )

Filters the adjacent image link.

Description

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

Parameters

$output

(string) Adjacent image HTML markup.

$attachment_id

(int) Attachment ID

$size

(string) Image size.

$text

(string) Link text.

Source

File: wp-includes/media.php

View on Trac

Changelog

Version Description
3.5.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/adjacent_image_link