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): mixedParameters:
| Parameter | Type | Description |
|---|---|---|
$settings_screen | \BigCommerce\Settings\Screens\Settings_Screen |
render_button
public render_button(string $label = '', string $redirect = ''): voidParameters:
| 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 = []): arrayParameters:
| Parameter | Type | Description |
|---|---|---|
$views | array |
get_import_url
public get_import_url(string $redirect = ''): stringParameters:
| Parameter | Type | Description |
|---|---|---|
$redirect | string |
handle_request
public handle_request(): voidlist_table_notice
Print the import button into the notices section of the products admin list table.
public list_table_notice(): voidAutomatically generated on 2025-01-21