ClassesBigCommerceTaxonomiesChannelChannel Synchronizer

Channel_Synchronizer

Class Channel_Synchronizer

Synchronizes channel data in the WP taxonomy with channels available via the API

  • Full name: \BigCommerce\Taxonomies\Channel\Channel_Synchronizer

Methods

__construct

public __construct(\BigCommerce\Api\v3\Api\ChannelsApi $channels_api): mixed

Parameters:

ParameterTypeDescription
$channels_api\BigCommerce\Api\v3\Api\ChannelsApi

initial_sync

Run an initial sync if channels have not been previously imported

public initial_sync(): void

handle_name_change

If a Channel name is changed, push the change up to the API

public handle_name_change(int $term_id): void

Parameters:

ParameterTypeDescription
$term_idint

sync

public sync(): void


Automatically generated on 2025-01-21