Last active
June 2, 2023 01:42
-
-
Save KristaButler/70f577e9279ed385471038602ec130a0 to your computer and use it in GitHub Desktop.
Print Scripts
This file contains 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
add_action('wp_enqueue_scripts', function () { | |
mper_print_scripts(); | |
}, 99999); | |
function mper_print_scripts() { | |
$list = ''; | |
//Print all loaded Styles (CSS) | |
global $wp_styles; | |
foreach( $wp_styles->queue as $style ) : | |
$list .= $style . PHP_EOL; | |
endforeach; | |
@wp_mail('email@email.com', 'DEBUG-Styles', $list); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment