import_upload_size_limit, wp_max_upload_size(

import_upload_size_limit, wp_max_upload_size(

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

apply_filters('import_upload_size_limit, wp_max_upload_size(') is found 2 times:

  • /includes/admin/importers/class-wc-product-csv-importer-controller.php line 439
    	/**
    	 * Output information about the uploading process.
    	 */
    	protected function upload_form() {
    		$bytes      = apply_filters( 'import_upload_size_limit', wp_max_upload_size() );
    		$size       = size_format( $bytes );
    		$upload_dir = wp_upload_dir();
    
    		include __DIR__ . '/views/html-product-csv-import-form.php';
    	}
    
    
  • /includes/admin/importers/class-wc-tax-rate-importer.php line 287
    		echo '<p>' . sprintf( esc_html__( 'Your CSV needs to include columns in a specific order. %1$sClick here to download a sample%2$s.', 'woocommerce' ), '<a href="' . esc_url( WC()->plugin_url() ) . '/sample-data/sample_tax_rates.csv">', '</a>' ) . '</p>';
    
    		$action = 'admin.php?import=woocommerce_tax_rate_csv&step=1';
    
    		$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 esc_html_e( 'Before you can upload your import file, you will need to fix the following error:', 'woocommerce' ); ?></p>