wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi
get_space_allowed › WordPress Function
Dan/a
Deprecaton/a
› get_space_allowed ( Nessun parametro )
| Ritorna: |
|
| Definito a: |
|
| Codex: | |
| ChangeLog: |
|
Returns the upload quota for the current blog.
Funzioni correlate: get_space_used, get_site_allowed_themes, rest_send_allow_header, get_upload_space_available, get_allowed_themes
Sorgenti
function get_space_allowed() {
$space_allowed = get_option( 'blog_upload_space' );
if ( ! is_numeric( $space_allowed ) ) {
$space_allowed = get_site_option( 'blog_upload_space' );
}
if ( ! is_numeric( $space_allowed ) ) {
$space_allowed = 100;
}
/**
* Filters the upload quota for the current site.
*
* @since 3.7.0
*
* @param int $space_allowed Upload quota in megabytes for the current blog.
*/
return apply_filters( 'get_space_allowed', $space_allowed );
}