WordPress at Your Fingertips
filter is not described

(adjacent)_image_link filter-hook . WP 3.5.0

Filters the adjacent 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_link
  • previous_image_link


add_filter( '(adjacent)_image_link', 'filter_function_name_7825', 10, 4 );
function filter_function_name_7825( $output, $attachment_id, $size, $text ){
	// filter...

	return $output;
Adjacent image HTML markup.
Attachment ID
Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order).
Link text.


Since 3.5.0 Introduced.

Where the hook is called

wp-includes/media.php 3505
return apply_filters( "{$adjacent}_image_link", $output, $attachment_id, $size, $text );

Where in WP core the hook is used WordPress

Usage not found.