Created
May 14, 2018 22:38
-
-
Save josemariagarcia95/38e00201153acd2d5ed1e7976f17c6cd to your computer and use it in GitHub Desktop.
Debugging function to check data
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 console_log( $data ){ | |
echo '<script>'; | |
echo 'console.log('. json_encode( $data ) .')'; | |
echo '</script>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment