Switch language

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




display_space_usage [ WordPress Function ]

display_space_usage ( No parameters )
Defined at:



No description yet.

Source


<?php
function display_space_usage() {
    
$space get_space_allowed();
    
$used get_dirsizeBLOGUPLOADDIR ) / 1024 1024;

    
$percentused = ( $used $space ) * 100;

    if ( 
$space 1000 ) {
        
$space number_format$space 1024 );
        
/* translators: Gigabytes */
        
$space .= __'GB' );
    } else {
        
/* translators: Megabytes */
        
$space .= __'MB' );
    }
    
?>
    <strong><?php printf__'Used: %1s%% of %2s' ), number_format$percentused ), $space ); ?></strong>
    <?php
}
?>

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