WC_Regenerate_Images::is_regeneration_in_progress
See if thumbnail regeneration is currently in progress.
Method of the class: WC_Regenerate_Images{}
No Hooks.
Returns
true|false.
Usage
$result = WC_Regenerate_Images::is_regeneration_in_progress();
Changelog
| Since 11.0.0 | Introduced. |
WC_Regenerate_Images::is_regeneration_in_progress() WC Regenerate Images::is regeneration in progress code WC 11.0.0
public static function is_regeneration_in_progress() {
// WC_Regenerate_Images_Request::is_running() returns whether the queue is empty.
return self::$background_process && ! self::$background_process->is_running();
}