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



plugin_dir_path › WordPress Function

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

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



Sorgenti

function plugin_dir_path( $file ) {
	return trailingslashit( dirname( $file ) );
}