Automattic\WooCommerce\Internal\ProductFeed\Integrations\POSCatalog

AsyncGenerator::feed_deletion_actionpublicWC 10.5.0

Action scheduler callback for the feed deletion after expiry.

Метод класса: AsyncGenerator{}

Хуков нет.

Возвращает

null. Ничего (null).

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

$AsyncGenerator = new AsyncGenerator();
$AsyncGenerator->feed_deletion_action( $option_key, $path );
$option_key(строка) (обязательный)
The option key for the feed generation status.
$path(строка) (обязательный)
The path to the feed file.

Список изменений

С версии 10.5.0 Введена.

Код AsyncGenerator::feed_deletion_action() WC 10.5.2

public function feed_deletion_action( string $option_key, string $path ) {
	delete_option( $option_key );
	wp_delete_file( $path );
}