Skip to main content

Filter: gk/gravityview/datatables/response/error-payload

Modifies the error payload returned to the client.

Unrestricted for administrators only. This endpoint is nopriv-reachable, so anyone -- not only whoever registered this filter -- can trigger it; for every other requester, {@see \self::restrict_to_visitor_shape()} discards anything the callback adds or changes beyond the error message text, so entry data, paths, or SQL returned here cannot reach an anonymous response.

Parameters

NameTypeDescription
$payloadarrayThe error payload.
$codestringThe error code.

Since

  • 3.12.0

Source

Defined in includes/class-datatables-response.php at line 310