previous_image_link

函数


previous_image_link ( $size = 'thumbnail', $text = false )
参数
  • (string|int[])
    $size
    Optional. Image size. Accepts any registered image size name, or an array of width and height values in pixels (in that order). Default ‘thumbnail’.
    Required:
    Default: ‘thumbnail’
  • (string|false)
    $text
    Optional. Link text. Default false.
    Required:
    Default: false
定义位置
  • wp-includes/media.php
    , line 3516
引入
2.5.0
弃用

Displays previous image link that has the same post parent.

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