wphooks.info - import_upload_size_limit

import_upload_size_limit

(trunk - 5.0-alpha-43293)

The hook occurs in the following file:

wp-admin/includes/template.php:
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
	/**
	 * Filters the maximum allowed upload size for import files.
	 *
	 * @since 2.3.0
	 *
	 * @see wp_max_upload_size()
	 *
	 * @param int $max_upload_size Allowed upload size. Default 1 MB.
	 */
	$bytes      = apply_filters( 'import_upload_size_limit', wp_max_upload_size() );
	$size       = size_format( $bytes );
	$upload_dir = wp_upload_dir();
	if ( ! empty( $upload_dir['error'] ) ) :
		?>
		<div class="error"><p><?php _e( 'Before you can upload your import file, you will need to fix the following error:' ); ?></p>
		<p><strong><?php echo $upload_dir['error']; ?></strong></p></div>
								<?php
	else :
?>