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 dirsize

Description

Get the size of a directory.

A helper function that is used primarily to check whether a blog has exceeded its allowed upload space.

Usage

<?php get_dirsize$directory ); ?>

Parameters

$directory
(string) (required)
Default: None

Return Values

(int) 

Source File

get_dirsize() is located in wp-includes/ms-functions.php