wp-includes/comment.php:3436Determines whether pings should be disabled for the current environment.
boolOne hook fires while wp_should_disable_pings_for_environment() runs, in this order:
Filters whether pings should be disabled for the current environment.
function wp_should_disable_pings_for_environment() { $environment_type = wp_get_environment_type(); $should_disable = 'production' !== $environment_type; /** * 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. * * @since 7.1.0 * * @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 );}Introduced in 7.1.0.
Signature, return type and hooks compared across 1 parsed release.
src/wp-includes/comment.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.