関数
RestRouteGuards::customOrderFieldsCheck()
Return GenericError
if any errors are returned by usces_filter_delivery_check_custom_order
戻り値 戻り値
ファイル: src/Routing/RestRouteGuards.php
public function customOrderFieldsCheck() { return function () { if ($this->module->getActingOpts()['quickpay_custom_order_fields'] === 'on') { $mes = ''; $mes = usces_filter_delivery_check_custom_order($mes); if (!\WCUtils::is_blank($mes)) { return $this->module->errors->getErrorResponse( GenericErrorStore::USCES_CUSTOM_FIELDS_ERR, [$mes], [$mes] ); } } }; }