pre_get_space_used
Filters the amount of storage space used by the current site, in megabytes.
Использование
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.
По умолчанию: false
Список изменений
С версии 3.5.0 | Введена. |
Где вызывается хук
pre_get_space_used
wp-includes/ms-functions.php 2540
$space_used = apply_filters( 'pre_get_space_used', false );