ben(ny) pearson|

wp_enqueue_script() – the recommended method of adding JavaScript to WordPress

This function includes the script if it hasn’t already been included, and safely handles dependencies (scripts that must be loaded before the script). <?php wp_enqueue_script( $handle, $src, $deps, $ver, $in_footer );?> $handle is the name of the script in lowercase. $src (optional) URL to the script. This parameter is only required when WordPress does not […]