---
title: "fswa_available_triggers — Filter Hook"
description: "Filters the grouped list of available triggers returned by the triggers REST endpoint."
url: "https://wpwebhooks.org/docs/fswa-available-triggers/"
---

[WP Webhooks](https://wpwebhooks.org/) / [Docs](https://wpwebhooks.org/docs/) / fswa\_available\_triggers

Filter since v1.0.0

# fswa\_available\_triggers

Filters the grouped list of available triggers returned by the triggers REST endpoint.

/ Signature

```
apply_filters( 'fswa_available_triggers', $triggers )
```

/ When it fires

Fires when the REST API returns the available triggers list (used to populate the trigger picker in the admin UI).

/ Parameters

| Name | In | Type | Req | Description |
| --- | --- | --- | --- | --- |
| $triggers | param | array | yes | Grouped triggers: \`\[ category => \[ hookName, ... \] \]\`. |

/ Returns

`array` Modified triggers array. Same structure.

/ Examples

Add a custom plugin hook to the trigger list

```
add_filter( 'fswa_available_triggers', function ( $triggers ) {
    $triggers['My Plugin'][] = 'my_plugin_order_confirmed';
    $triggers['My Plugin'][] = 'my_plugin_subscription_renewed';
    return $triggers;
} );
```

/ Related

[Developer Extensibility](https://wpwebhooks.org/docs/developer-extensibility/)

/Ready

## Your next automation is  
one sentence away.

[Install Plugin→](https://wordpress.org/plugins/flowsystems-webhook-actions/) [See the Plugin →](https://wpwebhooks.org/wordpress-webhook-plugin/)

$ wp plugin install flowsystems-webhook-actions --activate

## Structured data

```json
{"@context":"https://schema.org","@type":"TechArticle","name":"fswa_available_triggers — Filter Hook — Webhook Actions Docs","description":"Filters the grouped list of available triggers returned by the triggers REST endpoint.","url":"https://wpwebhooks.org/docs/fswa-available-triggers/","isPartOf":{"@type":"WebSite","name":"WP Webhooks","url":"https://wpwebhooks.org"},"about":{"@type":"SoftwareApplication","name":"Webhook Actions","applicationCategory":"WordPress Plugin"}}
```
