wip first shortcode

This commit is contained in:
asus
2024-02-07 14:39:22 +01:00
parent 858290a72b
commit e3ae101fdd
3 changed files with 67 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
<?php
// https://stackify.com/how-to-log-to-console-in-php/
function consolelog($output) {
$js_code = 'console.log(' . json_encode($output, JSON_HEX_TAG) . ');';
$js_code = '<script>' . $js_code . '</script>';
echo $js_code;
}
?>