the_excerpt_export

過濾鉤子
apply_filters( 'the_excerpt_export', $post->post_excerpt )
引數
  • (string) $post_excerpt Excerpt for the current post.
    Required:
定義位置
相關勾子
the_excerpt_rssthe_content_exportthe_excerptthe_excerpt_embedthe_title_export
相關方法
the_excerpt_rssthe_excerptthe_excerpt_embedget_the_excerptthe_generatorhas_excerpt
引入
2.6.0
棄用
-

the_excerpt_export是一個WordPress過濾鉤,允許開發者修改摘錄內容用於匯出,如匯出文章或頁面。在內容被匯出之前,過濾器被應用到內容上。這個鉤子對於對摘錄內容進行任何必要的修改是很有用的,以確保它的格式正確,適合正在使用的匯出格式。

過濾用於 WXR 輸出的文章摘要。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$excerpt = wxr_cdata( apply_filters( 'the_excerpt_export', $post->post_excerpt ) );
$excerpt = wxr_cdata( apply_filters( 'the_excerpt_export', $post->post_excerpt ) );
$excerpt = wxr_cdata( apply_filters( 'the_excerpt_export', $post->post_excerpt ) );

常見問題

FAQs
檢視更多 >