wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



plugin_dir_path › WordPress Function

Depuis2.8.0
Dépréciéen/a
plugin_dir_path ( $file )
Paramètres:
  • (string) $file The filename of the plugin (__FILE__).
    Requis: Oui
Retourne:
  • (string) the filesystem path of the directory that contains the plugin.
Défini(e) dans:
Codex:

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



Source

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