用法

$path = get_home_path();

返回值:

string

WordPress 安裝根目錄的完整檔案系統路徑,即使它安裝在子資料夾中也是如此。

例:

/var/www/htdocs/example