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:\xampp\htdocs\wordpress\wp-content\plugins\my_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?

Topic plugins-url plugins Wordpress

Category Web


Check out the plugins_url() and plugin_dir_url() functions.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.