Admin_UI

  • Full name: \BigCommerce\Post_Types\Product\Admin_UI

Methods

prevent_slug_changes

Prevent updates to the post slug

public prevent_slug_changes(array $post_data, array $submitted_data): array

Parameters:

ParameterTypeDescription
$post_dataarray
$submitted_dataarray

Filters the sample permalink HTML markup to make it a static link

public override_sample_permalink_html(string $html, int $post_id, string $title, string $slug, \WP_Post $post): string

Parameters:

ParameterTypeDescription
$htmlstringSample permalink HTML markup.
$post_idintPost ID.
$titlestringNew sample permalink title.
$slugstringNew sample permalink slug.
$post\WP_PostPost object.

Remove the featured image metabox to prevent editing of the automatically assigned featured image

public remove_featured_image_meta_box(\WP_Post $post): void

Parameters:

ParameterTypeDescription
$post\WP_Post

list_table_import_status

Add the last import date at the end of 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_import_status(array $views = []): array

Parameters:

ParameterTypeDescription
$viewsarray

list_import_tooltip

Adds an import tooltip to products page

public list_import_tooltip(array $views = []): array

Parameters:

ParameterTypeDescription
$viewsarray

Add a link to manage products in BigCommerce to the top of the products list table

public list_table_manage_link(array $views = []): array

Parameters:

ParameterTypeDescription
$viewsarray

last_import_date

public last_import_date(): string

Return Value:

The date of the last import. Empty if not available.


list_table_admin_notices

Show applicable admin notices at the top of the products list table

public list_table_admin_notices(): void


Automatically generated on 2025-01-21