I can't link the external JavaScript file to my WordPress theme through the plugin. All I found is this way to attach a JavaScript file:
function theme_name_scripts() {
wp_register_script('script-name-faizan-test', 'http://vjs.zencdn.net/4.12/video.js');
wp_enqueue_script('script-name-faizan-test');
}
add_action('wp_enqueue_scripts', 'theme_name_scripts');
What am I doing wrong?