Switch language

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




fix_import_form_size [ WordPress Function ]

fix_import_form_size ( $size )
Parameters:
  • (int) $size
Uses:
Returns:
  • (int)
Defined at:



Get the remaining upload space for this blog.

Source


<?php
function fix_import_form_size$size ) {
    if ( 
upload_is_user_over_quotafalse ) == true )
        return 
0;

    
$spaceAllowed 1024 1024 get_space_allowed();
    
$dirsize get_dirsizeBLOGUPLOADDIR );
    if ( 
$size $spaceAllowed $dirsize )
        return 
$spaceAllowed $dirsize// remaining space
    
else
        return 
$size// default
}
?>

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