ClassesBigCommerceImportImportersProductsProduct Ignorer

Product_Ignorer

Strategy for skipping a product during the import process.

Methods

__construct

Product_Ignorer constructor.

public __construct(\BigCommerce\Api\v3\Model\Product $product, \BigCommerce\Api\v3\Model\Listing $listing, \WP_Term $channel_term, \BigCommerce\Api\v3\Api\CatalogApi $catalog, int $post_id): mixed

Initializes the product ignorer with relevant data and dependencies.

Parameters:

ParameterTypeDescription
$product\BigCommerce\Api\v3\Model\ProductThe product data.
$listing\BigCommerce\Api\v3\Model\ListingThe channel listing data.
$channel_term\WP_TermThe WordPress term representing the channel.
$catalog\BigCommerce\Api\v3\Api\CatalogApiThe Catalog API instance.
$post_idintThe WordPress post ID.

do_import

Skips the import process for the current product.

public do_import(): int

Triggers a custom action hook for other processes to react to the product being skipped.

Return Value:

The WordPress post ID of the skipped product.



Automatically generated on 2025-01-21