the_permalink_rss

過濾鉤子
apply_filters( 'the_permalink_rss', get_permalink()
引數
  • (string) $post_permalink The current post permalink.
    Required:
定義位置
相關勾子
the_permalinkget_sample_permalinkthe_excerpt_rssterm_linkget_sample_permalink_html
相關方法
the_permalink_rssthe_permalinkget_the_permalinkget_permalinkpost_permalinkpermalink_single_rss
引入
2.3.0
棄用
-

the_permalink_rss是一個模板標籤,用於在RSS feed中顯示一個文章或頁面的固定連結。它在RSS提要中被用來提供一個連結到你的網站上的完整文章或頁面內容。

過濾文章的固定連結,以便在feeds中使用。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
echo esc_url( apply_filters( 'the_permalink_rss', get_permalink() ) );
echo esc_url( apply_filters( 'the_permalink_rss', get_permalink() ) );
echo esc_url( apply_filters( 'the_permalink_rss', get_permalink() ) );

常見問題

FAQs
檢視更多 >