WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WC_Regenerate_Images::queue_image_regeneration() public WC 1.0

Get list of images and queue them for regeneration

Это метод класса: WC_Regenerate_Images{}

Хуков нет.

Возвращает

null.

Использование

$result = WC_Regenerate_Images::queue_image_regeneration();

Код WC_Regenerate_Images::queue_image_regeneration() WC 4.5.2

woocommerce/includes/class-wc-regenerate-images.php
<?php
public static function queue_image_regeneration() {
	global $wpdb;
	// First lets cancel existing running queue to avoid running it more than once.
	self::$background_process->kill_process();

	// Now lets find all product image attachments IDs and pop them onto the queue.
	$images = $wpdb->get_results( // @codingStandardsIgnoreLine
		"SELECT ID
		FROM $wpdb->posts
		WHERE post_type = 'attachment'
		AND post_mime_type LIKE 'image/%'
		ORDER BY ID DESC"
	);
	foreach ( $images as $image ) {
		self::$background_process->push_to_queue(
			array(
				'attachment_id' => $image->ID,
			)
		);
	}

	// Lets dispatch the queue to start processing.
	self::$background_process->save()->dispatch();
}