WooCommerce Code Reference

Importers

Interfaces, Classes and Traits

WC_Product_CSV_Importer_Controller
Product importer controller - handles file upload and forms in admin.
WC_Tax_Rate_Importer
Tax Rates importer - import tax rates and local tax rates into WooCommerce.

Table of Contents

wc_importer_current_locale()  : string
Importer current locale.
wc_importer_default_english_mappings()  : array<string|int, mixed>
Add English mapping placeholders when not using English as current language.
wc_importer_default_special_english_mappings()  : array<string|int, mixed>
Add English special mapping placeholders when not using English as current language.
wc_importer_generic_mappings()  : array<string|int, mixed>
Add generic mappings.
wc_importer_shopify_mappings()  : array<string|int, mixed>
Add Shopify mappings.
wc_importer_shopify_special_mappings()  : array<string|int, mixed>
Add special wildcard Shopify mappings.
wc_importer_shopify_expand_data()  : array<string|int, mixed>
Expand special Shopify columns to WC format.
wc_importer_wordpress_mappings()  : array<string|int, mixed>
Add mappings for WordPress tables.

Functions

wc_importer_default_english_mappings()

Add English mapping placeholders when not using English as current language.

wc_importer_default_english_mappings(array<string|int, mixed> $mappings) : array<string|int, mixed>
Parameters
$mappings : array<string|int, mixed>

Importer columns mappings.

Tags
since
3.1.0

wc_importer_default_special_english_mappings()

Add English special mapping placeholders when not using English as current language.

wc_importer_default_special_english_mappings(array<string|int, mixed> $mappings) : array<string|int, mixed>
Parameters
$mappings : array<string|int, mixed>

Importer columns mappings.

Tags
since
3.1.0

wc_importer_generic_mappings()

Add generic mappings.

wc_importer_generic_mappings(array<string|int, mixed> $mappings) : array<string|int, mixed>
Parameters
$mappings : array<string|int, mixed>

Importer columns mappings.

Tags
since
3.1.0

wc_importer_shopify_mappings()

Add Shopify mappings.

wc_importer_shopify_mappings(array<string|int, mixed> $mappings, array<string|int, mixed> $raw_headers) : array<string|int, mixed>
Parameters
$mappings : array<string|int, mixed>

Importer columns mappings.

$raw_headers : array<string|int, mixed>

Raw headers from CSV being imported.

Tags
since
3.7.0

wc_importer_shopify_special_mappings()

Add special wildcard Shopify mappings.

wc_importer_shopify_special_mappings(array<string|int, mixed> $mappings, array<string|int, mixed> $raw_headers) : array<string|int, mixed>
Parameters
$mappings : array<string|int, mixed>

Importer columns mappings.

$raw_headers : array<string|int, mixed>

Raw headers from CSV being imported.

Tags
since
3.7.0

wc_importer_shopify_expand_data()

Expand special Shopify columns to WC format.

wc_importer_shopify_expand_data(array<string|int, mixed> $data) : array<string|int, mixed>
Parameters
$data : array<string|int, mixed>

Array of data.

Tags
since
3.7.0

wc_importer_wordpress_mappings()

Add mappings for WordPress tables.

wc_importer_wordpress_mappings(array<string|int, mixed> $mappings) : array<string|int, mixed>
Parameters
$mappings : array<string|int, mixed>

Importer columns mappings.

Tags
since
3.1.0