Is there a hook for error_log(...) ? On my development environment I would like to var_dump the results instead of having to check the log file each time.

  • 3
    error_log() is a PHP function not a WordPress one so there are no hooks for it.
    – freejack
    Sep 12, 2019 at 17:00

1 Answer 1


Try using standard function from PHP set_error_handler()

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.