Get info (url) from already enqueued styles

Registered styles are in the $wp_styles global, and registered scripts are in $wp_scripts. You can var_dump them to see their structure.

global $wp_scripts;
echo $wp_scripts->registered['tt-easy-google-fonts']->src;

Leave a Comment