函数原型
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:
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
'thumbnail'.Default:
'thumbnail' -
$text
bool
Optional - Link text.
Default:
false
函数返回值
无
函数位置
File: wp-includes/media.php.
函数源码
function adjacent_image_link( $prev = true, $size = 'thumbnail', $text = false ) {
echo get_adjacent_image_link( $prev, $size, $text );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |

