ClassesBigCommerceSettingsSectionsChannel Select

Channel_Select

Constants

ConstantVisibilityTypeValue
NAMEpublic’channel_select’
CHANNEL_TERMpublic’bigcommerce_channel_term_id’
NEW_CHANNELpublic’create’
NEW_NAMEpublic’bigcommerce_new_channel_name’

Methods

register_settings_section

public register_settings_section(): mixed

render_channel_select_field

public render_channel_select_field(): mixed

sanitize_channel_name

Sanitize the channel name before saving or using

public sanitize_channel_name(string $name): string

Parameters:

ParameterTypeDescription
$namestringThe channel name to sanitize

Return Value:

The sanitized channel name


render_field

Override parent render_field to ensure channel name is sanitized

public render_field(mixed $args): void

Parameters:

ParameterTypeDescription
$argsmixed

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