How can I get a link path to use for my resources such as JS scripts?


Is there a function that would return the equivalent of plugin_dir_path but it being agnostic of a plugin / theme? JS scripts need to be enqueued as resources, as such, you cannot include their on-server path which is, say /var/www/html/wordpress/thing/thing2/script.js, it needs to be the counterpart.

Daniel Smith 7 days 0 Answers 32 views 0

Leave an answer