I use the following function to display all the scripts handles in plugin options page but it display only the handles of admin:
function my_detected_scripts() {
global $wp_scripts;
foreach( $wp_scripts->queue as $handle ) :
echo $handle . ' <br /> ';
endforeach;
}
add_action( 'wp_print_scripts', 'my_detected_scripts' );
Then:
echo my_detected_scripts()
How can get the handles of all frontend enqueued scripts only?
Thanks in advance!