wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_should_disable_pings_for_environment › Filtr WordPress Hooks

Od7.1.0
Przestarzałyn/a
› apply_filters( 'wp_should_disable_pings_for_environment', $should_disable, $environment_type )
Parametry: (2)
  • () should_disable Whether pings should be disabled. Default true for non-production environments, false for production.
    Wymagane: Tak
  • () environment_type The current environment type as returned by wp_get_environment_type().
    Wymagane: Tak
Zdefiniowane na:
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.




Źródło

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