wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



plugin_dir_url › WordPress Function

Da2.8.0
Deprecaton/a
plugin_dir_url ( $file )
Parametri:
  • (string) $file The filename of the plugin (__FILE__).
    Richiesto:
Ritorna:
  • (string) the URL path of the directory that contains the plugin.
Definito a:
Codex:

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



Sorgenti

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