Automattic\WooCommerce\Admin\API

SettingOptions::batch_items()publicWC 1.0

Invalidates API cache when updating settings options.

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

Хуков нет.

Возвращает

Массив. Of WP_Error or WP_REST_Response.

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

$SettingOptions = new SettingOptions();
$SettingOptions->batch_items( $request );
$request(WP_REST_Request) (обязательный)
Full details about the request.

Код SettingOptions::batch_items() WC 8.7.0

public function batch_items( $request ) {
	// Invalidate the API cache.
	ReportsCache::invalidate();

	// Process the request.
	return parent::batch_items( $request );
}