Automattic\WooCommerce\Admin\API
SettingOptions::batch_items
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() SettingOptions::batch items WC 11.0.1
public function batch_items( $request ) {
// Invalidate the API cache.
ReportsCache::invalidate();
// Process the request.
return parent::batch_items( $request );
}