next_image_link

The timeline below displays how wordpress function next_image_link has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.8

/**
 * Displays next image link that has the same post parent.
 *
 * @since 2.5.0
 *
 * @param 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'.
 * @param string|false $text Optional. Link text. Default false.
 */
function next_image_link($size = 'thumbnail', $text = false)
{
    echo get_next_image_link($size, $text);
}

WordPress Version: 5.7

/**
 * Displays next image link that has the same post parent.
 *
 * @since 2.5.0
 *
 * @see adjacent_image_link()
 *
 * @param 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'.
 * @param string|false $text Optional. Link text. Default false.
 */
function next_image_link($size = 'thumbnail', $text = false)
{
    adjacent_image_link(false, $size, $text);
}

WordPress Version: 5.6

/**
 * Displays next image link that has the same post parent.
 *
 * @since 2.5.0
 *
 * @see adjacent_image_link()
 *
 * @param 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'.
 * @param string       $text Optional. Link text. Default false.
 */
function next_image_link($size = 'thumbnail', $text = false)
{
    adjacent_image_link(false, $size, $text);
}

WordPress Version: 4.4

/**
 * Displays next image link that has the same post parent.
 *
 * @since 2.5.0
 *
 * @see adjacent_image_link()
 *
 * @param string|array $size Optional. Image size. Accepts any valid image size, an array of width and
 *                           height values in pixels (in that order), 0, or 'none'. 0 or 'none' will
 *                           default to 'post_title' or `$text`. Default 'thumbnail'.
 * @param string       $text Optional. Link text. Default false.
 */
function next_image_link($size = 'thumbnail', $text = false)
{
    adjacent_image_link(false, $size, $text);
}

WordPress Version: 4.3

/**
 * Displays next image link that has the same post parent.
 *
 * @since 2.5.0
 *
 * @see adjacent_image_link()
 *
 * @param string|array $size Optional. Registered image size or flat array of height and width dimensions.
 *                           0 or 'none' will default to 'post_title' or `$text`. Default 'thumbnail'.
 * @param string       $text Optional. Link text. Default false.
 */
function next_image_link($size = 'thumbnail', $text = false)
{
    adjacent_image_link(false, $size, $text);
}

WordPress Version: 4.2

/**
 * Displays next image link that has the same post parent.
 *
 * @since 2.5.0
 *
 * @see adjacent_image_link()
 *
 * @param string|array $size Optional. Registered image size or flat array of height and width dimensions.
 *                           0 or 'none' will default to 'post_title' or `$text`. Default 'thumbnail'.
 * @param string       $text Optional. Link text. Default false.
 * @return string HTML output for the next image link.
 */
function next_image_link($size = 'thumbnail', $text = false)
{
    adjacent_image_link(false, $size, $text);
}

WordPress Version: 3.7

/**
 * Display next image link that has the same post parent.
 *
 * @since 2.5.0
 * @param string $size Optional, default is 'thumbnail'. Size of image, either array or string. 0 or 'none' will default to post_title or $text;
 * @param string $text Optional, default is false. If included, link will reflect $text variable.
 * @return string HTML content.
 */
function next_image_link($size = 'thumbnail', $text = false)
{
    adjacent_image_link(false, $size, $text);
}