Hi all I want to add absolute url of scripts to wordpress. I’m using wp_enqueue_script();

But it always add my own domain to script’s url. I’m adding url like


in browser I always got like


Don’t now how to remove /wp-content/plugins/plugname/assets/js/

Read more here: want to add absolute url by wp_enqueue_script() in wordpress


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: