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

Usage

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

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

Changelog

Since 3.5.0 Introduced.

Where the hook is called

get_adjacent_image_link()
(adjacent)_image_link
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.