[wp-hackers] Best way to get URL to plugin directory?

Otto otto at ottodestruct.com
Tue Oct 14 16:31:14 GMT 2008


How would one get the URL to their own plugin directory? To include,
say, an image tag?

This works, but is rather ugly:

plugins_url(dirname(plugin_basename(__FILE__)))


More information about the wp-hackers mailing list