WooCommerce Code Reference

WC_Tax_Rate_Importer extends WP_Importer

Tax Rates importer - import tax rates and local tax rates into WooCommerce.

Tags
version
2.3.0

Table of Contents

$delimiter  : string
The current delimiter.
$file_url  : string
The current file url.
$id  : int
The current file id.
$import_error_message  : string
Error message for import.
$import_page  : string
The current import page.
__construct()  : mixed
Constructor.
bump_request_timeout()  : int
Added to http_request_timeout filter to force timeout at 60 seconds during import.
dispatch()  : mixed
Registered callback function for the WordPress Importer.
footer()  : mixed
Output footer html.
format_data_from_csv()  : string
UTF-8 encode the data if `$enc` value isn't UTF-8.
greet()  : mixed
Output information about the uploading process.
handle_upload()  : bool
Handles the CSV upload and initial parsing of the file to prepare for.
header()  : mixed
Output header html.
import()  : mixed
Import the file if it exists and is valid.
import_end()  : mixed
Performs post-import cleanup of files and the cache.
set_import_error_message()  : mixed
Set the import error message.
import_error()  : mixed
Show import error and quit.
import_start()  : mixed
Import is starting.

Properties

Methods

format_data_from_csv()

UTF-8 encode the data if `$enc` value isn't UTF-8.

public format_data_from_csv(mixed $data, string $enc) : string
Parameters
$data : mixed

Data.

$enc : string

Encoding.

Return values
string

handle_upload()

Handles the CSV upload and initial parsing of the file to prepare for.

public handle_upload() : bool

displaying author import options.

Return values
boolFalse if error uploading or invalid file, true otherwise