WooCommerce Code Reference
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo
  • Hook Reference
  • WooCommerce Docs
  • REST API Docs

Packages

  • None
  • WooCommerce
    • Abstracts
    • Admin
      • Customize
      • Functions
      • Importers
      • Meta
      • Reports
      • System
    • API
    • Classes
      • Data
        • Store
      • Emails
      • Embed
      • Integrations
      • Interfaces
      • Log
        • Handlers
      • Payment
      • Products
      • Shipping
      • Walkers
    • Export
    • Functions
    • Import
    • l10n
    • PaymentTokens
    • PayPal
    • Shortcodes
      • Cart
      • Checkout
      • My
        • Account
      • Order
        • Tracking
    • Webhooks
    • Widgets
  • WP-Background-Processing

Classes

  • WC_Product_CSV_Importer_Controller
  • WC_Tax_Rate_Importer

Class WC_Tax_Rate_Importer

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

WP_Importer
Extended by WC_Tax_Rate_Importer
Package: WooCommerce\Admin\Importers
Category: Admin
Author: WooThemes
Version: 2.3.0
Located at admin/importers/class-wc-tax-rate-importer.php

Methods summary

public
# __construct( )

Constructor.

Constructor.

public
# dispatch( )

Registered callback function for the WordPress Importer.

Registered callback function for the WordPress Importer.

Manages the three separate stages of the CSV import process.

public string
# format_data_from_csv( mixed $data, string $enc )

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

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

Parameters

$data
Data.
$enc
Encoding.

Returns

string
public
# import( mixed $file )

Import the file if it exists and is valid.

Import the file if it exists and is valid.

Parameters

$file
File.
public
# import_end( )

Performs post-import cleanup of files and the cache.

Performs post-import cleanup of files and the cache.

public boolean
# handle_upload( )

Handles the CSV upload and initial parsing of the file to prepare for. displaying author import options.

Handles the CSV upload and initial parsing of the file to prepare for. displaying author import options.

Returns

boolean
False if error uploading or invalid file, true otherwise
public
# header( )

Output header html.

Output header html.

public
# footer( )

Output footer html.

Output footer html.

public
# greet( )

Output information about the uploading process.

Output information about the uploading process.

public integer
# bump_request_timeout( integer $val )

Added to http_request_timeout filter to force timeout at 60 seconds during import.

Added to http_request_timeout filter to force timeout at 60 seconds during import.

Parameters

$val
Value.

Returns

integer
60

Properties summary

public integer $id

The current file id.

The current file id.

#
public string $file_url

The current file url.

The current file url.

#
public string $import_page

The current import page.

The current import page.

#
public string $delimiter

The current delimiter.

The current delimiter.

#
WooCommerce Code Reference API documentation generated by ApiGen