Created
November 12, 2019 21:04
-
-
Save jsakas/f7faebc4756cc56a87c49a071310b149 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
<?php | |
/** | |
* Template debug | |
*/ | |
add_filter('template_include', function ($template) { | |
error_log('Template :: ' . $template); | |
return $template; | |
}, 99); | |
/** | |
* Logger helper | |
*/ | |
function rlog($i) { | |
error_log(print_r($i, true)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment