Matt Cromwell shows us how to enqueue scripts only when a widget or shortcode is present. Useful if you don’t want something like a stylesheet to be enqueued EVERYWHERE regardless of whether it’s being used on the page or not.
Categorized under:
Matt Cromwell shows us how to enqueue scripts only when a widget or shortcode is present. Useful if you don’t want something like a stylesheet to be enqueued EVERYWHERE regardless of whether it’s being used on the page or not.