get_previous_image_link()
Gets the previous image link that has the same post parent.
Хуков нет.
Возвращает
Строку. Markup for previous image link.
Использование
get_previous_image_link( $size, $text );
- $size(строка|int[])
- Image size. Accepts any registered image size name, or an array of width and height values in pixels (in that order).
По умолчанию:'thumbnail' - $text(строка|false)
- Link text.
По умолчанию:false
Заметки
- Смотрите: get_adjacent_image_link()
Список изменений
| С версии 5.8.0 | Введена. |
Код get_previous_image_link() get previous image link WP 7.0.2
function get_previous_image_link( $size = 'thumbnail', $text = false ) {
return get_adjacent_image_link( true, $size, $text );
}