Channels

Class Channels

Channel configuration after the plugin has been fully configured, which at this point is limited to changing the channel name

Constants

ConstantVisibilityTypeValue
NAMEpublic’channel’
CHANNEL_IDpublic’bigcommerce_channel_id’
CHANNEL_NAMEpublic’bigcommerce_channel_name’
NEW_NAMEpublic’bigcommerce_add_channel_name’
PRIMARY_CHANNELpublic’bigcommerce_primary_channel’
CONNECTED_CHANNELSpublic’bigcommerce_connected_channels’
OTHER_CHANNELSpublic’bigcommerce_other_channels’
ACTION_RENAMEpublic’rename’
ACTION_CONNECTpublic’connect’
ACTION_DISCONNECTpublic’disconnect’
ACTION_PROMOTEpublic’promote’
POST_ACTIONpublic’bigcommerce-channel-operation’

Methods

register_settings_section

public register_settings_section(): mixed

render_primary_channel

public render_primary_channel(): mixed

render_connected_channels

public render_connected_channels(): mixed

render_other_channels

public render_other_channels(): mixed

handle_action_submission

Handle a request to perform an operation on an existing channel

public handle_action_submission(string $redirect): void

Parameters:

ParameterTypeDescription
$redirectstringURL to redirect to after handling the submission

promote_channel

Promote a channel to the “Primary” status, demoting the current primary to the “Connected” status

public promote_channel(\WP_Term $term): void

Parameters:

ParameterTypeDescription
$term\WP_Term

save_channel_names

Save channel name changes to taxonomy terms, not to options

public save_channel_names(array $value): null

Parameters:

ParameterTypeDescription
$valuearray

Inherited methods

render_field

public render_field(array $args): void

Parameters:

ParameterTypeDescription
$argsarray

render_number_field

public render_number_field(array $args): void

Parameters:

ParameterTypeDescription
$argsarray

get_disabled_attr_headless

Get disabled attribute if headless option is on

public get_disabled_attr_headless(): string


Automatically generated on 2025-01-21