wxr_export_skip_commentmeta

過濾鉤子
apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta )
引數
  • (bool) $skip Whether to skip the current comment meta. Default false.
    Required:
  • (string) $meta_key Current meta key.
    Required:
  • (object) $meta Current meta object.
    Required:
定義位置
相關勾子
wxr_export_skip_postmetawxr_export_skip_termmetaexport_wp_filenamewp_set_comment_statusallow_empty_comment
相關方法
get_comment_metapost_comment_meta_boxwp_spam_commentdelete_comment_metaupdate_comment_metawp_unspam_comment
引入
4.0.0
棄用
-

wxr_export_skip_commentmeta:這是一個過濾器,允許你跳過匯出評論後設資料(meta)。

過濾器是否有選擇地跳過用於WXR匯出的評論後設資料。

從過濾器返回一個Truthy值將跳過當前的meta
物件被匯出。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
if ( apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta ) ) {
if ( apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta ) ) {
if ( apply_filters( 'wxr_export_skip_commentmeta', false, $meta->meta_key, $meta ) ) {

常見問題

FAQs
檢視更多 >