the_content_export

過濾鉤子
apply_filters( 'the_content_export', $post->post_content )
引數
  • (string) $post_content Content of the current post.
    Required:
定義位置
相關勾子
the_content_feedthe_title_exportthe_contentthe_excerpt_exportembed_content_meta
相關方法
the_content_rssthe_contentthe_content_feedget_the_content_feedget_the_contentget_comment_excerpt
引入
2.5.0
棄用
-

the_content_export與the_content相似,但專門用於從WordPress匯出資料。它用於將文章內容的格式化,使之適合於匯出到其他系統。

過濾用於 WXR 輸出的文章內容。

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

常見問題

FAQs
檢視更多 >