WordPress – Add CSS/JS to Plugin/Theme (with cache-busting & variable-passing)
This demonstrates how to add JavaScript and CSS files to the functions.php file for a WordPress plugin, theme, or child theme, with a few convenience features added in. Which Hooks [...]