Import_Now
- Full name:
\BigCommerce\Settings\Import_Now
Constants
Constant | Visibility | Type | Value |
---|---|---|---|
ACTION | public | ’bigcommerce_import_now’ |
Methods
__construct
Import_Now constructor.
public __construct(\BigCommerce\Settings\Screens\Settings_Screen $settings_screen): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$settings_screen | \BigCommerce\Settings\Screens\Settings_Screen |
render_button
public render_button(string $label = '', string $redirect = ''): void
Parameters:
Parameter | Type | Description |
---|---|---|
$label | string | The label for the button. |
$redirect | string | The redirect destination after starting the import. Defaults to the settings page. |
list_table_link
Add the sync link to the views above the products list table. While not exactly a view, it’s a reasonable place to inject the status into the UI.
public list_table_link(array $views = []): array
Parameters:
Parameter | Type | Description |
---|---|---|
$views | array |
get_import_url
public get_import_url(string $redirect = ''): string
Parameters:
Parameter | Type | Description |
---|---|---|
$redirect | string |
handle_request
public handle_request(): void
list_table_notice
Print the import button into the notices section of the products admin list table.
public list_table_notice(): void
Automatically generated on 2025-01-21