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 ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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