Recent

Product_Migrator class

Product_Migrator

Product Migrator: Migration wizard for Products taxonomy transition.

Namespace: WebberZone\Knowledge_Base\Admin
Since: 3.0.0
Source: includes/admin/class-product-migrator.php line 21

Methods

__construct()

Constructor: Hook admin notices and menu.

Line: 53

public function __construct(  );

register_migration_wizard_page()

Register the migration wizard admin page (submenu under KB, but no visible link unless you add one).

Line: 62

public function register_migration_wizard_page(  );

enqueue_scripts()

Enqueue scripts for migration wizard.

Line: 84

public function enqueue_scripts( $hook );
TypeNameDescription
string$hookThe current admin screen hook.

render_migration_wizard()

Render the migration wizard screen and handle migration logic.

Line: 116

public function render_migration_wizard(  );

handle_migration_batch()

Handle migration batch.

Line: 178

public function handle_migration_batch(  );

is_dismissed() static

Check if the notice has been dismissed for 90 days.

Line: 921

static public function is_dismissed(  ): bool;

Returns: bool — True if the notice has been dismissed, false otherwise.

is_kb_admin_screen() static

Check if we are on a KB admin screen.

Line: 934

static public function is_kb_admin_screen(  ): bool;

Returns: bool — True if we are on a KB admin screen, false otherwise.

dismiss_product_notice()

AJAX handler for dismissing the product notice.

Line: 944

public function dismiss_product_notice(  ): void;

Returns: void

display_error()

Display an error message in a consistent format.

Line: 958

public function display_error( $message );
TypeNameDescription
string$messageThe error message.

display_success()

Display a success message in a consistent format.

Line: 967

public function display_success( $message );
TypeNameDescription
string$messageThe success message.

display_warning()

Display a warning message in a consistent format.

Line: 976

public function display_warning( $message );
TypeNameDescription
string$messageThe warning message.