WordPress get_home_path() Usage


Example

$path = get_home_path();

Return value:

string

Full filesystem path to the root of the WordPress installation, even if it's installed in a subfolder.

Example:

/var/www/htdocs/example