wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_should_disable_pings_for_environment › WordPress Filter Hooks

Da7.1.0
Deprecaton/a
› apply_filters( 'wp_should_disable_pings_for_environment', $should_disable, $environment_type )
Parametri: (2)
  • () should_disable Whether pings should be disabled. Default true for non-production environments, false for production.
    Richiesto: Sì
  • () environment_type The current environment type as returned by wp_get_environment_type().
    Richiesto: Sì
Definito a:
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.




Sorgenti

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