the_title_export

過濾鉤子
apply_filters( 'the_title_export', $post->post_title )
引數
  • (string) $post_title Title of the current post.
    Required:
定義位置
相關勾子
the_title_rssthe_content_exportthe_titlethe_excerpt_exportwp_title_parts
相關方法
the_title_rssthe_titleget_the_title_rssthe_title_attributeget_the_titlethe_editor
引入
5.7.0
棄用
-

the_title_export – 這是一個WordPress函式,用來匯出文章的標題,以便在其他應用程式中使用,如RSS提要或外部資料庫。它的工作原理與the_title函式類似,但在不同的環境下使用時,它可能有不同的格式化選項或行為。

過濾用於WXR匯出的文章標題。

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

常見問題

FAQs
檢視更多 >