当前浏览:首页 / WordPress函数 / pings_open()

pings_open( int|WP_Post $post_id = null )

当前文章是否接受ping

open


描述

更多类似的主题函数信息,请查看主题开发手册中的条件标签文章。


参数

$post_id

(int|WP_Post) (可选) 文章 ID或WP_Post对象,默认当前文章。

默认值: null


返回

(bool) 如果接受ping,则为true



源码

查看源码 官方文档


更新日志

版本描述
1.5.0开始引入