WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/get home path

Description

Get the absolute filesystem path to the root of the WordPress installation.

Usage

 <?php $path get_home_path() ?> 

Parameters

Return Value

(string) 
Full filesystem path to the root of the WordPress installation

Examples

Default Usage

Change Log

Source File

get_home_path() is located in wp-admin/includes/file.php

Related