pings_open

過濾鉤子
apply_filters( 'pings_open', $open, $post_id )
引數
  • (bool) $open Whether the current post is open for pings.
    Required:
  • (int) $post_id The post ID.
    Required:
定義位置
相關勾子
wp_doing_croncomments_openwp_insert_commentplugins_loadedplugins_api
相關方法
pings_opencomments_openwp_doing_cronwp_insert_commentis_homeis_page
引入
2.5.0
棄用
-

ping_open 是一個鉤子,當檢查一個文章的trackbacks和pingbacks的狀態時被呼叫。它被用來確定一個特定的文章的回帖和pingbacks是開放還是關閉的。

過濾當前文章是否為ping開啟。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'pings_open', $open, $post_id );
return apply_filters( 'pings_open', $open, $post_id );
return apply_filters( 'pings_open', $open, $post_id );

常見問題

FAQs
檢視更多 >