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?
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?
1 Answer
Reset to default 2Check out the plugins_url()
and plugin_dir_url()
functions.