WordPress at a glance
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'.


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

	return $output;
Adjacent image HTML markup.
Attachment ID
Image size.
Link text.


Since 3.5.0 Introduced.

Where the hook is called

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

Where the hook is used (in WP core)

Usage not found!