Filters whether pings should be disabled for the current environment.
$should_disablebool$environment_typestringwp-includes/comment.php:3453wp_should_disable_pings_for_environment() * * @param bool $should_disable Whether pings should be disabled. Default true * for non-production environments, false for production. * @param string $environment_type The current environment type as returned by * wp_get_environment_type(). */ return apply_filters( 'wp_should_disable_pings_for_environment', $should_disable, $environment_type );} /** * Removes outgoing ping callbacks in non-production environments. * * Hooked to `do_all_pings` at priority 1 so it runs before the defaultIntroduced in 7.1.0.
Signature, return type and hooks compared across 1 parsed release.