Support » Fixing WordPress » Add parent element for WP_DEBUG info


    When you set WP_DEBUG to ‘true’ – you get a bunch of great error messages. I want these messages to land in the DOM in a controlled element. Currently – it just plops in a bunch of paragraphs and br elements willy-nilly in the middle of the page. Is there a filter or some hook that will put those errors in an element that I can style?

Viewing 2 replies - 1 through 2 (of 2 total)
  • No, there’s not. That’s becaues the errors/warnings/etc are all output at the location that the occur in, which makes sense otherwise you wouldn’t know at what stage they are occuring.

    Thread Starter sheriffderek


    Thanks for the answer. Placement in the context makes sense. It would still be cool to have each area or errors in a parent div or something.

    : /

    • This reply was modified 2 years, 3 months ago by sheriffderek.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add parent element for WP_DEBUG info’ is closed to new replies.