How can i check to see if my WordPress code is correct?

I am trying to enqueue a script into my WordPress theme, but i have no way to tell if it is correct. The script isn’t working, so what am i doing wrong?

function buns_bootstrap_js(){

    wp_enqueue_script('bootstrapjs', get_stylesheet_directory() . 'js/bootstrap.min.js',    array('jquery'),'3.2.0');
}

add_action('wp_enqueue_script', 'buns_bootstrap_js');

Related posts

1 comment

Comments are closed.