get_next_image_link

函式
get_next_image_link ( $size = 'thumbnail', $text = false )
引數
  • (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:
    Default: 'thumbnail'
  • (string|false) $text Optional. Link text. Default false.
    Required:
    Default: false
返回值
  • (string) Markup for next image link.
相關
  • get_adjacent_image_link()
定義位置
相關方法
next_image_linkget_adjacent_image_linkget_next_posts_page_linkget_edit_tag_linkget_next_comments_link
引入
5.8.0
棄用
-

get_next_image_link函式用於生成一個指向文章的下一個圖片附件的連結: 這個函式通常用在圖片庫中,提供圖片之間的導航。

獲得下一個圖片連結,該連結具有相同的文章父級。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function get_next_image_link( $size = 'thumbnail', $text = false ) {
return get_adjacent_image_link( false, $size, $text );
}
function get_next_image_link( $size = 'thumbnail', $text = false ) { return get_adjacent_image_link( false, $size, $text ); }
function get_next_image_link( $size = 'thumbnail', $text = false ) {
	return get_adjacent_image_link( false, $size, $text );
}

常見問題

FAQs
檢視更多 >