Gets the filesystem directory path (with trailing slash) for the plugin __FILE__ passed in
Signature
plugin_dir_path( $file )
- file
- (string) The filename of the plugin (__FILE__)
Return
(string) the filesystem path of the directory that contains the plugin
Source
function plugin_dir_path( $file ) {
return trailingslashit( dirname( $file ) );
}
WP Trac GitHub Bitbucket
Link here
-
URL
http://queryposts.com/function/plugin_dir_path/ -
HTML
<a href='http://queryposts.com/function/plugin_dir_path/'>plugin_dir_path()</a> -
Markdown
[plugin_dir_path()](http://queryposts.com/function/plugin_dir_path/) -
BBCode
[url=http://queryposts.com/function/plugin_dir_path/]plugin_dir_path()[/url]