---
id: gk-foundation-ajax-router-routes
title: "Filter - gk/foundation/ajax/{$router}/routes"
sidebar_label: "gk/foundation/ajax/{$router}/routes"
tags:
  - "1.0.0"
---

# Filter: gk/foundation/ajax/\{$router\}/routes

Modifies a list of Ajax routes that map to backend functions/class methods. $router groups routes to avoid a name collision (e.g., 'settings', 'licenses').

## Parameters

| Name | Type | Description |
|------|------|-------------|
| $routes | `array[]` | Ajax route to function/class method map. |

### Since

- 1.0.0

### Source

Defined in `WP/AjaxRouter.php` at line 119

