WordPress at Your Fingertips
function is not described

WC_Regenerate_Images::dismiss_regenerating_notice() public WC 1.0

Dismiss notice and cancel jobs.

{} It's a method of the class: WC_Regenerate_Images{}

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Regenerate_Images::dismiss_regenerating_notice();

Code of WC_Regenerate_Images::dismiss_regenerating_notice() WC 5.9.0

public static function dismiss_regenerating_notice() {
	if ( self::$background_process ) {
		self::$background_process->kill_process();

		$log = wc_get_logger();
		$log->info(
			__( 'Cancelled product image regeneration job.', 'woocommerce' ),
			array(
				'source' => 'wc-image-regeneration',
			)
		);
	}
	WC_Admin_Notices::remove_notice( 'regenerating_thumbnails' );
}