Automattic\WooCommerce\Admin\API

SettingOptions::batch_items()publicWC 1.0

Invalidates API cache when updating settings options.

Method of the class: SettingOptions{}

No Hooks.

Return

Array. Of WP_Error or WP_REST_Response.

Usage

$SettingOptions = new SettingOptions();
$SettingOptions->batch_items( $request );
$request(WP_REST_Request) (required)
Full details about the request.

SettingOptions::batch_items() code WC 8.7.0

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

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