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打开。

return apply_filters( 'pings_open', $open, $post_id );

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2026-03-15 14:37:20

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: