WPDev.one
Core Function
View Source on Trac ↗

get_next_image_link()

get_next_image_link( mixed $size = 'thumbnail', mixed $text = false )

Gets the next image link that has the same post parent.

Parameters 2 required

Name / Type Description
mixed

(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
(string

| false) $text Optional. Link text. Default false.

Required

Return Value

(string)
Markup for next image link.

Function Information

Since Version
5.8.0
Source File
wp-includes/media.php
Advertisement