import_upload_size_limit filter-hookWP 2.3.0

Filters the maximum allowed upload size for import files.

Usage

add_filter( 'import_upload_size_limit', 'wp_kama_import_upload_size_limit_filter' );

/**
 * Function for `import_upload_size_limit` filter-hook.
 * 
 * @param int $max_upload_size Allowed upload size.
 *
 * @return int
 */
function wp_kama_import_upload_size_limit_filter( $max_upload_size ){

	// filter...
	return $max_upload_size;
}
$max_upload_size(int)
Allowed upload size.
Default: 1 MB

Changelog

Since 2.3.0 Introduced.

Where the hook is called

wp_import_upload_form()
import_upload_size_limit
wp-admin/includes/template.php 974
$bytes      = apply_filters( 'import_upload_size_limit', wp_max_upload_size() );

Where the hook is used in WordPress

wp-includes/ms-default-filters.php 102
add_filter( 'import_upload_size_limit', 'fix_import_form_size' );