I am having a stab at writing my first plugin and have encountered a problem including the built in jQuery UI scripts. The code I have is as follows:
function bda_faqs_load_js() {
wp_enqueue_script('jquery');
wp_enqueue_script('jquery-ui-core');
wp_enqueue_script('jquery-ui-widget');
}
add_action( 'init', 'bda_faqs_load_js' );
This doesn't load the required scripts is there something I am missing?
I would really like to utilise the built in scripts and not load my own version.