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



wp_should_disable_pings_for_environment › WordPress过滤钩子

Since7.1.0
已弃用n/a
› apply_filters( 'wp_should_disable_pings_for_environment', $should_disable, $environment_type )
参数: (2)
  • () should_disable Whether pings should be disabled. Default true for non-production environments, false for production.
    Required: Yes
  • () environment_type The current environment type as returned by wp_get_environment_type().
    Required: Yes
定义在:
文档:

Filters whether pings should be disabled for the current environment.

Returning false re-enables pings in non-production environments. Returning true disables pings even in production.




源码

return apply_filters( 'wp_should_disable_pings_for_environment', $should_disable, $environment_type );