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



wp_should_handle_php_error › Filtr WordPress Hooks

Od5.2.0
Przestarzałyn/a
apply_filters( 'wp_should_handle_php_error', false, $error )
Parametry: (2)
  • (bool) $should_handle_error Whether the error should be handled by the fatal error handler.
    Wymagane: Tak
  • (array) $error Error information retrieved from `error_get_last()`.
    Wymagane: Tak
Zdefiniowane na:
Codex:

Filters whether a given thrown error should be handled by the fatal error handler.

This filter is only fired if the error is not already configured to be handled by WordPress core. As such, it exclusively allows adding further rules for which errors should be handled, but not removing existing ones.





Źródło

return (bool) apply_filters( 'wp_should_handle_php_error', false, $error );