wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



get_previous_image_link › WordPress Function

Seit5.8.0
Veraltetn/v
get_previous_image_link ( $size = 'thumbnail', $text = false )
Parameter: (2)
  • (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'.
    Erforderlich: Nein
    Standard: 'thumbnail'
  • (string|false) $text Optional. Link text. Default false.
    Erforderlich: Nein
    Standard: false
Siehe:
Gibt zurück:
  • (string) Markup for previous image link.
Definiert in:
Codex:

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



Quellcode

function get_previous_image_link( $size = 'thumbnail', $text = false ) {
	return get_adjacent_image_link( true, $size, $text );
}