plugin_dir_url( __FILE__ )
returns plugin URL with a trailing slash (/
). So you have to remove the extra trailing slash.
wp_enqueue_script( 'awesome_form_validation', plugin_dir_url( __FILE__ ). 'js/form_validation.js', array(), '1.0.0', true );
plugin_dir_url( __FILE__ )
returns plugin URL with a trailing slash (/
). So you have to remove the extra trailing slash.
wp_enqueue_script( 'awesome_form_validation', plugin_dir_url( __FILE__ ). 'js/form_validation.js', array(), '1.0.0', true );