get_dirsize


get_dirsize ( $directory )

Parameters:
  • (string) $directory Full path of a directory.
Returns:
  • (int) Size of the directory in MB.
Defined at:
Change Log:
  • M: U

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.

Related Functions

get_site, get_sites, image_resize, get_udims, recurse_dirsize

Top Google Results

User discussions

wpseek mobile