the_excerpt_rss

過濾鉤子
apply_filters( 'the_excerpt_rss', $output )
引數
  • (string) $output The current post excerpt.
    Required:
定義位置
相關勾子
the_excerptthe_excerpt_exportthe_excerpt_embedget_the_excerptthe_category_rss
相關方法
the_excerpt_rssthe_excerptthe_excerpt_embedget_the_excerptthe_content_rsshas_excerpt
引入
1.2.0
棄用
-

the_excerpt_rss – 這是一個WordPress函式,在RSS feed中顯示一個文章的摘錄。摘錄是文章的一個簡短摘要,通常顯示在部落格的首頁,在RSS feed中用來給使用者一個文章內容的快速概述。the_excerpt_rss函式可以用來定製摘要在feed中的顯示方式,通過控制其長度、格式和其他細節。

過濾用於feed的文章摘錄。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
echo apply_filters( 'the_excerpt_rss', $output );
echo apply_filters( 'the_excerpt_rss', $output );
echo apply_filters( 'the_excerpt_rss', $output );

常見問題

FAQs
檢視更多 >