fix_import_form_size [ WordPress Function ]
fix_import_form_size ( $size )
| Parameters: |
|
| Uses: | |
| Returns: |
|
| Defined at: |
|
Benzer Fonksiyonlar: _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 ]
Google Arama Sonuçlarý
- 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 - php /** * Sets up the default filters and actions - WordPress SVN
... 'wp_update_network_counts'); // Files add_filter( 'wp_upload_bits', ' upload_is_file_too_big' ); add_filter( 'import_upload_size_limit', ' fix_import_form_size' ) ...
core.svn.wordpress.org - 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