get_previous_image_link()

最后更新于:2021-11-26 23:13:29

get_previous_image_link( string|int[]$size=’thumbnail’, string|false$text=false)

Gets the previous image link that has the same post parent.

参数

$size

(string|int[]) (Optional) Image size. Accepts any registered image size name, or an array of width and height values in pixels (in that order).

Default value: ‘thumbnail’

$text

(string|false) (Optional) Link text.

Default value: false

响应

(string) Markup for previous image link.

源文件

文件: gc-includes/media.php

function get_previous_image_link( $size = 'thumbnail', $text = false ) {
	return get_adjacent_image_link( true, $size, $text );
}