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).
3989* @param string$output Adjacent image HTML markup.3990* @param int$attachment_id Attachment ID3991* @param string|int[]$size Requested image size. Can be any registered image size name,or3992* an array of width and height values in pixels(in that order).3993* @param string$text Link text.3994*/3995returnapply_filters("{$adjacent}_image_link",$output,$attachment_id,$size,$text);3996}39973998/**3999* Displays next or previous image link that has the same post parent.4000*4001* Retrieves the current attachment object from the$postglobal.
History
Introduced in 3.5.0. Unchanged from 6.7.7 through 7.1.0.