The dynamic portion of the hook name, $adjacent, refers to the type of adjacency, either 'next', or 'previous'. Possible hook names include: <ul> <li>next_image_link</li> <li>previous_image_link</li> </ul>
Parameters
$outputstring
Adjacent image HTML markup.
$attachment_idint
Attachment ID
$sizestring|int[]
Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).
3977* @param string$output Adjacent image HTML markup.3978* @param int$attachment_id Attachment ID3979* @param string|int[]$size Requested image size. Can be any registered image size name,or3980* an array of width and height values in pixels(in that order).3981* @param string$text Link text.3982*/3983returnapply_filters("{$adjacent}_image_link",$output,$attachment_id,$size,$text);3984}39853986/**3987* Displays next or previous image link that has the same post parent.3988*3989* Retrieves the current attachment object from the$postglobal.
History
Introduced in 3.5.0. Unchanged from 6.7.7 through 7.1.0.