函数原型
get_next_image_link( string|int[] $size = ‘thumbnail’, string|false $text = false ): string
函数描述
Gets the next 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
'thumbnail'.Default:
'thumbnail' -
$text
string|false
Optional - Link text.
Default:
false
函数返回值
string Markup for next image link.
函数位置
File: wp-includes/media.php.
函数源码
function get_next_image_link( $size = 'thumbnail', $text = false ) {
return get_adjacent_image_link( false, $size, $text );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 5.8.0 | Introduced. |

