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

Description

Displays the amount of disk space used by the current site.

Usage

<?php display_space_usage(); ?>

Parameters

None.

Return

This function does not return a value, the output is displayed directly instead.

Examples

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)

Notes

  • According to the source, this function is not currently used in core.

Change Log

Source File

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

Related

get_space_used(), get_space_allowed()

See also index of Function Reference and index of Template Tags.
This article is marked as in need of editing. You can help Codex by editing it.