WC_Admin_Notices::regenerating_lookup_table_notice()public staticWC 3.6.0

Notice shown when regenerating thumbnails background process is running.

Method of the class: WC_Admin_Notices{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_Admin_Notices::regenerating_lookup_table_notice();

Changelog

Since 3.6.0 Introduced.

WC_Admin_Notices::regenerating_lookup_table_notice() code WC 8.6.1

public static function regenerating_lookup_table_notice() {
	// See if this is still relevant.
	if ( ! wc_update_product_lookup_tables_is_running() ) {
		self::remove_notice( 'regenerating_lookup_table' );
		return;
	}

	include dirname( __FILE__ ) . '/views/html-notice-regenerating-lookup-table.php';
}