pre_get_space_used filter-hookWP 3.5.0

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

get_space_used()
pre_get_space_used
wp-includes/ms-functions.php 2622
$space_used = apply_filters( 'pre_get_space_used', false );

Where the hook is used in WordPress

Usage not found.