wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



plugin_dir_path › WordPress Function

Od2.8.0
Przestarzałyn/a
plugin_dir_path ( $file )
Parametry:
  • (string) $file The filename of the plugin (__FILE__).
    Wymagane: Tak
Powrót:
  • (string) the filesystem path of the directory that contains the plugin.
Zdefiniowane na:
Codex:

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



Źródło

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