Created
March 2, 2021 18:17
-
-
Save mihdan/1e462b557fc84c518f1be52d4807c4dc to your computer and use it in GitHub Desktop.
Обертка над Query Monitor для вывода дебага в его лог
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 | |
function d( ...$vars ) { //phpcs:ignore PHPCompatibility.LanguageConstructs.NewLanguageConstructs.t_ellipsisFound | |
foreach ( $vars as $var ) { | |
do_action( 'qm/debug', var_export( $var, true ) ); // phpcs:ignore | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment