Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wordpress throw to debug.log

 // Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
// Throw something:
error_log("My Error!");
// Tail -f /wp-content/debug.log (on linux, or your editor, or windows: BareTail)
Source by wordpress.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #wordpress #throw
ADD COMMENT
Topic
Name
3+7 =