get_space_allowed
Filters the upload quota for the current site.
Usage
add_filter( 'get_space_allowed', 'wp_kama_get_space_allowed_filter' ); /** * Function for `get_space_allowed` filter-hook. * * @param int $space_allowed Upload quota in megabytes for the current blog. * * @return int */ function wp_kama_get_space_allowed_filter( $space_allowed ){ // filter... return $space_allowed; }
- $space_allowed(int)
- Upload quota in megabytes for the current blog.
Changelog
Since 3.7.0 | Introduced. |
Where the hook is called
get_space_allowed
wp-includes/ms-functions.php 2575
return apply_filters( 'get_space_allowed', $space_allowed );