the_permalink

過濾鉤子
apply_filters( 'the_permalink', get_permalink()
定義位置
  • wp-content/themes/twentythirteen/functions.php , line 676
相關勾子
the_permalink_rssterm_linkget_sample_permalinkthe_shortlinkthe_feed_link
相關方法
the_permalinkget_the_permalinkthe_permalink_rssget_permalinkpost_permalinkget_sample_permalink
引入
Twenty Thirteen 1.0
棄用
-

the_permalink – 這是一個WordPress函式,顯示一個文章的永久URL。the_permalink from the post’s permanent URL, which is a unique and permanent link to the post that does not change over time. 這個函式可以用來在自定義模板或小工具中新增一個文章的永久URL的連結。

列印所附的圖片,並附上下一張所附圖片的連結。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return ( $has_url ) ? $has_url : apply_filters( 'the_permalink', get_permalink() );
return ( $has_url ) ? $has_url : apply_filters( 'the_permalink', get_permalink() );
return ( $has_url ) ? $has_url : apply_filters( 'the_permalink', get_permalink() );

常見問題

FAQs
檢視更多 >