multisite_over_quota_message()
- Since
- 3.5.0
- Source
wp-admin/includes/media.php:3106
Displays the out of storage quota message in Multisite.
Uses · 3
- __()Retrieves the translation of $text.
- size_format()Converts a number of bytes to the largest unit the bytes will fit into.
- get_space_allowed()Returns the upload quota for the current blog.
Source
function multisite_over_quota_message() { echo '<p>' . sprintf( /* translators: %s: Allowed space allocation. */ __( 'Sorry, you have used your space allocation of %s. Please delete some files to upload more files.' ), size_format( get_space_allowed() * MB_IN_BYTES ) ) . '</p>';}History
Introduced in 3.5.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.7.7 tag, from
src/wp-admin/includes/media.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. - Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.