DRYing out WordPress Asset Enqueuing

WordPress has several handy functions for granular control over external assets. Specifically wp_enqueue_script(), wp_register_script(), wp_enqueue_style(), wp_register_style(). These functions allow us to register assets so they’re available and can be added to the page where applicable. While these functions give a fair amount of control, if you have a complex site you can end up repeating […]

Read More