import_upload_size_limit filter-hookWC 1.0

This is a WordPress - import_upload_size_limit hook. The plugin just uses it.

Output information about the uploading process.

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

Where the hook is called

WC_Product_CSV_Importer_Controller::upload_form()
import_upload_size_limit
WC_Tax_Rate_Importer::greet()
import_upload_size_limit
woocommerce/includes/admin/importers/class-wc-product-csv-importer-controller.php 281
$bytes      = apply_filters( 'import_upload_size_limit', wp_max_upload_size() );
woocommerce/includes/admin/importers/class-wc-tax-rate-importer.php 287
$bytes      = apply_filters( 'import_upload_size_limit', wp_max_upload_size() );

Where the hook is used in WooCommerce

Usage not found.