显示具有相同后父级的上一个图像链接。
原型
previous_image_link( string|array $size = 'thumbnail', string $text = false )
参数
$size
(string|array)
(Optional)
图片尺寸。接受任何有效的图像大小,宽度和高度值的数组(以像素为单位),0或“无”。 0或’none’将默认为’post_title’或$ text。
$text
(string)
(Optional)
链接文字。
源文件
路径:wp-includes/media.php
<?php
...
function previous_image_link( $size = 'thumbnail', $text = false ) {
adjacent_image_link(true, $size, $text);
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/previous_image_link/