wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_should_disable_pings_for_environment › WordPress Filter Hooks

Seit7.1.0
Veraltetn/v
apply_filters( 'wp_should_disable_pings_for_environment', $should_disable, $environment_type )
Parameter: (2)
  • () should_disable Whether pings should be disabled. Default true for non-production environments, false for production.
    Erforderlich: Ja
  • () environment_type The current environment type as returned by wp_get_environment_type().
    Erforderlich: Ja
Definiert in:
Codex:

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.




Quellcode

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