Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




get_space_allowed [ WordPress Function ]

get_space_allowed ( No parameters )
Returns:
  • (int) Quota
Defined at:



Returns the upload quota for the current blog.

Source


<?php
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 ( empty( 
$space_allowed ) || ! is_numeric$space_allowed ) )
        
$space_allowed 50;

    return 
$space_allowed;
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics