Is there a way to dynamically get URL as a path to plugin root, not a local path?

Is there a way to get path to the root plugin folder as a remote URL instead of a local path.
For Example:

Instead of: c:xampphtdocswordpresswp-contentpluginsmy_plugin

I want to get: localhost/wordpress/wp-content/plugins/my_plugin/

Is there a way to get the ‘web’ path instead of local one?

Read more here:: Is there a way to dynamically get URL as a path to plugin root, not a local path?

Leave a Reply

Your email address will not be published. Required fields are marked *