get_space_allowed
Filters the upload quota for the current site.
Использование
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.
Список изменений
С версии 3.7.0 | Введена. |
Где вызывается хук
get_space_allowed
wp-includes/ms-functions.php 2575
return apply_filters( 'get_space_allowed', $space_allowed );