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 ]

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