Filters whether pings should be disabled for the current environment.
Description
Returning false re-enables pings in non-production environments.
Returning true disables pings even in production.
Parameters
$should_disablebool- Whether pings should be disabled. Default true for non-production environments, false for production.
$environment_typestring- The current environment type as returned by wp_get_environment_type() .
Source
return apply_filters( 'wp_should_disable_pings_for_environment', $should_disable, $environment_type );
Changelog
| Version | Description |
|---|---|
| 7.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.