Function: upload_is_user_over_quota

upload_is_user_over_quota( boolean $echo )

Check whether a site has used its allotted upload space.

Parameters

Name Type(s) Default Value Description
$echo boolean true

Optional. If $echo is set and the quota is exceeded, a warning message is echoed. Default is true.

Returns

boolean

True if user is over upload space quota, otherwise false.

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.