pre_get_space_used
Filters the amount of storage space used by the current site, in megabytes.
Usage
add_filter( 'pre_get_space_used', 'wp_kama_pre_get_space_used_filter' );
/**
* Function for `pre_get_space_used` filter-hook.
*
* @param int|false $space_used The amount of used space, in megabytes.
*
* @return int|false
*/
function wp_kama_pre_get_space_used_filter( $space_used ){
// filter...
return $space_used;
}
- $space_used(int|false)
- The amount of used space, in megabytes.
Default: false
Changelog
| Since 3.5.0 | Introduced. |
Where the hook is called
pre_get_space_used
wp-includes/ms-functions.php 2597
$space_used = apply_filters( 'pre_get_space_used', false );