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/display space usage"

(Included additional information about this function)
Line 1: Line 1:
  +
==Description==
  +
  +
Displays the amount of disk space used by a site.
  +
  +
==Usage==
  +
  +
%%%<?php display_space_usage(); ?>%%%
  +
  +
==Parameters==
  +
none
  +
  +
==Return==
  +
Outputs a preformatted string (see example)
  +
  +
==Example==
  +
The following are all examples of output when using <tt>display_space_usage()</tt>:
  +
  +
<pre><strong>Used: 25% of 50MB</strong></pre>
  +
<pre><strong>Used: 15% of 2GB</strong></pre>
  +
  +
(Note: The <tt>&lt;strong&gt;</tt> tags wrap the text displayed by <tt>display_space_usage()</tt> and are not an error in the examples above)
  +
 
== Source File ==
 
== Source File ==
 
<tt>display_space_usage()</tt> is located in {{Trac|wp-admin/includes/ms.php}}.
 
<tt>display_space_usage()</tt> is located in {{Trac|wp-admin/includes/ms.php}}.

Revision as of 17:29, 2 April 2012

Description

Displays the amount of disk space used by a site.

Usage

<?php display_space_usage(); ?>

Parameters

none

Return

Outputs a preformatted string (see example)

Example

The following are all examples of output when using display_space_usage():

<strong>Used: 25% of 50MB</strong>
<strong>Used: 15% of 2GB</strong>

(Note: The <strong> tags wrap the text displayed by display_space_usage() and are not an error in the examples above)

Source File

display_space_usage() is located in wp-admin/includes/ms.php.

See also index of Function Reference and index of Template Tags.
This page is marked as incomplete. You can help Codex by expanding it.