display_space_usage [ WordPress Function ]
display_space_usage ( No parameters )
| Defined at: |
|
Soorgelijke functies: display_header, is_upload_space_available, display_theme, upload_space_setting, display_themes
No description yet.
Source
<?php
function display_space_usage() {
$space = get_space_allowed();
$used = get_dirsize( BLOGUPLOADDIR ) / 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 ]
Top Google zoekresultaten
- Function Reference/display space usage « WordPress Codex
The following are all examples of output when using display_space_usage(): ... ( Note: The <strong> tags wrap the text displayed by display_space_usage() and ...
codex.wordpress.org - Display Space Usage and Window ... - Microsoft Research
Display Space Usage and Window Management Operation. Comparisons between Single Monitor and Multiple Monitor. Users. Dugald Ralph Hutchings ...
research.microsoft.com - Command to display the space usage (memory usage) of a specific ...
Hi all, Can you please tell me the command, with which one can know the amount of space a specific directory has used. df -k . ---> Displays ...
www.unix.com - Display space usage and window management operation ...
Display space usage and window management operation comparisons between single monitor and multiple monitor users ...
dl.acm.org