---
id: gk-foundation-ajax-after
title: "Action - gk/foundation/ajax/after"
sidebar_label: "gk/foundation/ajax/after"
tags:
  - "1.0.11"
  - "1.15.0"
---

# 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

| Name | Type | Description |
|------|------|-------------|
| $router | `string` |  |
| $route | `string` |  |
| $payload | `array` |  |
| $result | `mixed` |  |

### 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

