I'm trying to call js library using wp_enqueue_script. but I can't figure out what I'm mistaking here also, I want to use for plugins Please tell me how to use my plugins directory.
add_action('wp_enqueue_scripts', 'add_custom_script');
function add_custom_script(){
wp_enqueue_script(
'jquery-custom-script',
get_template_directory_uri().'/js/jquery-custom-script.js'
);
}
can anyone figure out what I'm mistaking here .