• this is a question regarding the treatmenat of the WP_DEBUG variable in WordPress

    i m trying to enable basic debug output with WordPress for a plugin I’m developing.I managed to get some so far, but failed to redirect it to wp-content/debug.log. I’ve been roughly following some manualpages

    see here’s what I did:

    well i have added a tiny snippet of code to the end of wp-config.php:

    @ini_set ('display_errors', 0);

    <br>define ('WP_DEBUG', true);

    <br>define ('WP_DEBUG_DISPLAY', false);

    <br>define ('WP_DEBUG_LOG', true);

    Question: what if i want ot disable the outuput.
    what if i do not want to show the output at all

    what can i do then !?`

    • This topic was modified 1 year, 7 months ago by lebrochet.
Viewing 1 replies (of 1 total)
  • The code snippet you provided will still log any debug messages to the file specified by the WP_DEBUG_LOG constant. If you want to disable logging as well, you can set WP_DEBUG_LOG to false.

    Keep in mind that disabling debug output completely can make it harder to troubleshoot issues with your website, so it’s generally a good idea to only disable it temporarily when you’re not actively debugging.

Viewing 1 replies (of 1 total)
  • The topic ‘question regarding the treatmenat of the WP_DEBUG variable in WordPress’ is closed to new replies.