plugins_url not returning correct directory
This plugin works on my live wordpress instance. However, on my local machine, none of the javascript is getting triggered. I think it has to do with plugins_url and it most likely not returning the correct path. How can I fix this?
wp_register_script('consultant_scheduler', plugins_url('/js/scripts.js', __FILE__), array( 'jquery' ));
wp_enqueue_script('consultant_scheduler');
} add_action('admin_enqueue_scripts', 'consultant_scheduler_scripts'); add_action('wp_enqueue_scripts', 'consultant_scheduler_scripts');
Topic plugins-url wp-register-script wp-enqueue-script plugins Wordpress
Category Web