Automattic\WooCommerce\Internal\CLI\Migrator\Platforms\Shopify
ShopifyMapper::__construct
Constructor.
Method of the class: ShopifyMapper{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ShopifyMapper = new ShopifyMapper(); $ShopifyMapper->__construct( $args );
- $args(array)
- Optional arguments including
'fields'array for selective processing.
Default:array()
ShopifyMapper::__construct() ShopifyMapper:: construct code WC 10.8.1
public function __construct( array $args = array() ) {
$this->fields_to_process = $args['fields'] ?? $this->get_default_product_fields();
}