I've got this in my main php file, but the scripts aren't loading
function class_table_scripts() {
wp_register_script( 'JavaScript1', plugins_url('js/wcs.js'), array() );
wp_register_script( 'JavaScript1', plugins_url('js/jquery.qtip-1.0.0-rc3.min.js'), array('jquery') );
}
add_action( 'wp_enqueue_scripts', 'class_table_scripts' );
I've never tried to use JS or JQuery on the options page before, this is my first go. Any pointers on where I'm going wrong here?
EDIT: Here's what finally worked for me:
function class_table_scripts() {
wp_register_script( 'JavaScript1', plugins_url('js/wcs.js',__FILE__));
wp_register_script( 'JQuery1', plugins_url('js/jquery.qtip-1.0.0-rc3.min.js',__FILE__) );
}
add_action( 'admin_init', 'class_table_scripts' );