WordPress at a glance

previous_image_link() WP 1.0

Displays previous image link that has the same post parent.

Возвращает

Null. Ничего.

Works based on: adjacent_image_link()

No Hooks.

Usage

previous_image_link( $size, $text );
$size(string/array)
Image size. Accepts any valid image size, an array of width and height values in pixels (in that order), 0, or 'none'. 0 or 'none' will default to 'post_title' or $text.
Default: 'thumbnail'
$text(string)
Link text.
Default: false

Notes

  • See: adjacent_image_link()

Список изменений

С версии 2.5.0 Введена.

Code of previous_image_link() WP 5.5.1

wp-includes/media.php
<?php
function previous_image_link( $size = 'thumbnail', $text = false ) {
	adjacent_image_link( true, $size, $text );
}

Related Functions

From tag: image (not thumbnails funcs)

More from tag: Link (tag A in HTML)

More from category: Images

More from Template Tags: Posts, Pages, ...

No comments
    Log In . Register