wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_auto_approve_ping › WordPress过滤钩子

Since7.1.0
已弃用n/a
› apply_filters( 'wp_auto_approve_ping', $approve_pingback, $source_id, $url )
参数: (3)
  • () approve_pingback Whether to auto-approve the pingback.
    Required: Yes
  • () source_id ID of the post on this site the pingback originated from, or 0 if it came from elsewhere.
    Required: Yes
  • () url The URL the pingback was sent from.
    Required: Yes
定义在:
文档:

Filters whether a pingback is approved without being held for moderation.

Defaults to true for pingbacks originating from a published post on the same site, and false for every other pingback. Trackbacks are never considered, as they cannot be verified.




源码

return (bool) apply_filters( 'wp_auto_approve_ping', $approve_pingback, $source_id, $url );