Skip to main content

Filter: gk/foundation/ajax/result

Modifies Ajax call result. Listeners can transform the response, including converting a success to an error or vice versa. Receives the raw Exception or WP_Error when the route failed.

Parameters​

NameTypeDescription
$resultmixed|\Exception|\WP_Error
$routerstring
$routestring
$payloadarray

Since​

  • 1.0.11

Source​

Defined in WP/AjaxRouter.php at line 163