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?
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:
\Roots\Sage\Assets\asset_path('styles/main.css');
Sage 9:
\App\asset_path('styles/main.css');
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.
Also a probably “stupid” question, but what is meant with “integration”?