WordPress at Your Fingertips
function is not described

WC_Product_CSV_Importer_Controller::upload_form_handler() public WC 1.0

Handle the upload form and store options.

{} It's a method of the class: WC_Product_CSV_Importer_Controller{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Product_CSV_Importer_Controller = new WC_Product_CSV_Importer_Controller();
$WC_Product_CSV_Importer_Controller->upload_form_handler();

Code of WC_Product_CSV_Importer_Controller::upload_form_handler() WC 5.9.0

public function upload_form_handler() {
	check_admin_referer( 'woocommerce-csv-importer' );

	$file = $this->handle_upload();

	if ( is_wp_error( $file ) ) {
		$this->add_error( $file->get_error_message() );
		return;
	} else {
		$this->file = $file;
	}

	wp_redirect( esc_url_raw( $this->get_next_step_link() ) );
	exit;
}