fix_import_form_size [ WordPress Function ]
fix_import_form_size ( $size )
| Parameters: |
|
| Uses: | |
| Returns: |
|
| Defined at: |
|
Soorgelijke functies: _post_format_link, wp_import_upload_form, get_post_format_string, get_post_format_strings, get_post_format_link
Get the remaining upload space for this blog.
Source
<?php
function fix_import_form_size( $size ) {
if ( upload_is_user_over_quota( false ) == true )
return 0;
$spaceAllowed = 1024 * 1024 * get_space_allowed();
$dirsize = get_dirsize( BLOGUPLOADDIR );
if ( $size > $spaceAllowed - $dirsize )
return $spaceAllowed - $dirsize; // remaining space
else
return $size; // default
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- Docs for page ms-functions.php
fix_import_form_size (line 1553). Get the remaining upload space for this blog. ... int fix_import_form_size (int $size). int $size. fix_phpmailer_messageid (line ...
phpdoc.wordpress.org - ms-functions.php
May 7, 2010 ... fix_import_form_size(). fix_phpmailer_messageid(). force_ssl_content(), Whether to force SSL on content. get_active_blog_for_user() ...
www.tig12.net - WordPress Multisite Functions List | Tikendra Maitry
Jul 6, 2011... upload_is_user_over_quota( $echo = true ); check_upload_mimes( $mimes ); update_posts_count( $deprecated = ” ); fix_import_form_size( ...
www.tiks.in - WordPress Multi-Site Function List » HN.Net WordPress Plugins
Jun 20, 2010... upload_is_user_over_quota( $echo = true ); check_upload_mimes( $mimes ); update_posts_count( $deprecated = ” ); fix_import_form_size( ...
holisticnetworking.net