wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



plugin_dir_url › WordPress Function

Desde2.8.0
Obsoleton/a
plugin_dir_url ( $file )
Parâmetros:
  • (string) $file The filename of the plugin (__FILE__).
    Required: Yes
Retorna:
  • (string) the URL path of the directory that contains the plugin.
Definido em:
Codex:

Get the URL directory path (with trailing slash) for the plugin __FILE__ passed in.



Fonte

function plugin_dir_url( $file ) {
	return trailingslashit( plugins_url( '', $file ) );
}