next_image_link()WP 2.5.0

Displays next image link that has the same post parent.

No Hooks.

Return

null. Nothing.

Usage

next_image_link( $size, $text );
$size(string|int[])
Image size. Accepts any registered image size name, or an array of width and height values in pixels (in that order).
Default: 'thumbnail'
$text(string|false)
Link text.
Default: false

Changelog

Since 2.5.0 Introduced.

Code of next_image_link() WP 6.0

function next_image_link( $size = 'thumbnail', $text = false ) {
	echo get_next_image_link( $size, $text );
}