get_space_allowed
Filter HookDescription
Filters the upload quota for the current site.Hook Information
File Location |
wp-includes/ms-functions.php
View on GitHub
|
Hook Type | Filter |
Line Number | 2632 |
Hook Parameters
Type | Name | Description |
---|---|---|
int
|
$space_allowed
|
Upload quota in megabytes for the current blog. |
Usage Examples
Basic Usage
<?php
// Hook into get_space_allowed
add_filter('get_space_allowed', 'my_custom_filter', 10, 1);
function my_custom_filter($space_allowed) {
// Your custom filtering logic here
return $space_allowed;
}
Source Code Context
wp-includes/ms-functions.php:2632
- How this hook is used in WordPress core
<?php
2627 *
2628 * @since 3.7.0
2629 *
2630 * @param int $space_allowed Upload quota in megabytes for the current blog.
2631 */
2632 return apply_filters( 'get_space_allowed', $space_allowed );
2633 }
2634
2635 /**
2636 * Determines if there is any upload space left in the current blog's quota.
2637 *
PHP Documentation
<?php
/**
* Filters the upload quota for the current site.
*
* @since 3.7.0
*
* @param int $space_allowed Upload quota in megabytes for the current blog.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/ms-functions.php
Related Hooks
Related hooks will be displayed here in future updates.