Created
November 27, 2024 11:11
-
-
Save autocircled/1e1840483477dbe9aa590607d34ea4c3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function qw( $data ) { | |
if ( true === WP_DEBUG ) { | |
$backtrace = debug_backtrace(); | |
$backtrace = array_shift( $backtrace ); | |
$output['backtrace'] = $backtrace['file'] . ':' . $backtrace['line']; | |
$output['data'] = $data; | |
error_log( print_r( $output, true ) ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment