Hardcoded paths in my plugin August 12, 2022 by Tarik Billa You want to use plugin_dir_url(): $url = plugin_dir_url( __FILE__ ) . 'js/my.js';