Stylesheet URL

I realize this is a stupid question, but the answer does not seem immediately obvious to me.

I need to pass the stylesheet URL to an integration. How can I get the main stylesheet URL as a string?

Sage 8:


Sage 9:

1 Like

Sorry, disregard. I think I’ve figured it out:

global $wp_scripts;
$sage_style = $wp_scripts->registered['sage/js']->src;

Ahh, much easier. Thank you. :+1:

1 Like

Also a probably “stupid” question, but what is meant with “integration”? :slight_smile:

1 Like