Skip to main content

Action: gk/foundation/ajax/after

Fires after the Ajax call is processed successfully. Does not fire when the route throws or the /result filter transforms the response into an Exception or WP_Error.

Parameters

NameTypeDescription
$routerstring
$routestring
$payloadarray
$resultmixed

Since

  • 1.0.11
  • 1.15.0: Only fires on successful results. Listeners no longer need to defend against Exception/WP_Error being passed as $result.

Source

Defined in WP/AjaxRouter.php at line 184