WordPress.org

Ready to get started?Download WordPress

Codex

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

Difference between revisions of "Function Reference/get home path"

(Structure.)
 
(Include more information about the function)
Line 1: Line 1:
 
== Description ==
 
== Description ==
+
Get the absolute filesystem path to the root of the WordPress installation.
 
== Usage ==
 
== Usage ==
   
%%% <?php ?> %%%
+
%%% <?php $path = get_home_path() ?> %%%
   
 
== Parameters ==
 
== Parameters ==
  +
  +
== Return Value ==
  +
{{Return||string|Full filesystem path to the root of the WordPress installation}}
   
 
== Examples ==
 
== Examples ==
Line 17: Line 20:
 
== Source File ==
 
== Source File ==
   
<tt> </tt> is located in {{Trac| }}
+
<tt>get_home_path()</tt> is located in {{Trac|wp-admin/includes/file.php}}
   
 
== Related ==
 
== Related ==

Revision as of 18:25, 12 December 2012

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