WordPress at Your Fingertips

previous_image_link() WP 1.0

Displays previous image link that has the same post parent.

No Hooks.

Return

null. Nothing.

Usage

previous_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 previous_image_link() WP 5.8.1

function previous_image_link( $size = 'thumbnail', $text = false ) {
	echo get_previous_image_link( $size, $text );
}

image (not thumbnails funcs)

Link (tag A in HTML)

Images

Posts, Pages, ...

No comments
    Log In