Core Function
View Source on Trac ↗ plugin_dir_path()
plugin_dir_path( mixed $file ) Get the filesystem directory path (with trailing slash) for the plugin __FILE__ passed in.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $file string | The filename of the plugin (__FILE__). Required |
Return Value
(string)
the filesystem path of the directory that contains the plugin.
Function Information
Since Version
2.8.0
Source File
wp-includes/plugin.php
Advertisement