adjacent_image_link()

最后更新于:2021-11-25 19:44:44

adjacent_image_link( bool$prev=true, string|int[]$size=’thumbnail’, bool$text=false)

Displays next or previous image link that has the same post parent.

参数

$prev

(bool) (Optional) Whether to display the next (false) or previous (true) link.

Default value: true

$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

(bool) (Optional) Link text.

Default value: false

源文件

文件: gc-includes/media.php

function adjacent_image_link( $prev = true, $size = 'thumbnail', $text = false ) {
	echo get_adjacent_image_link( $prev, $size, $text );
}