WC_Regenerate_Images::regenerating_notice()public staticWC 1.0

Show notice when job is running in background.

Method of the class: WC_Regenerate_Images{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_Regenerate_Images::regenerating_notice();

WC_Regenerate_Images::regenerating_notice() code WC 8.7.0

public static function regenerating_notice() {
	if ( ! self::$background_process->is_running() ) {
		WC_Admin_Notices::add_notice( 'regenerating_thumbnails' );
	} else {
		WC_Admin_Notices::remove_notice( 'regenerating_thumbnails' );
	}
}