You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm mounting plugins that I'm developing as the documentation says and in my plugin I'm trying to get the url of some scripts like this: $path = dirname(plugin_dir_url( __FILE__ )) . '/scripts/js/script.js';
However this returns the URL: http://localhost:8080/app/wp-content/plugins/customer-manager/scripts/js/script.js?ver=5.6.8
whereas the actual URL should be: http://localhost:8080/wp-content/plugins/customer-manager/scripts/js/script.js?ver=5.6.8
Overview
I'm mounting plugins that I'm developing as the documentation says and in my plugin I'm trying to get the url of some scripts like this:
$path = dirname(plugin_dir_url( __FILE__ )) . '/scripts/js/script.js';
However this returns the URL:
http://localhost:8080/app/wp-content/plugins/customer-manager/scripts/js/script.js?ver=5.6.8
whereas the actual URL should be:
http://localhost:8080/wp-content/plugins/customer-manager/scripts/js/script.js?ver=5.6.8
without the app directory.
Any help would be much appreciated. Thanks!
docker-compose.yml
The text was updated successfully, but these errors were encountered: