# Notification_Data_Access::execute_action()

Execute an action on a notification.

```php
execute_action( int $notification_id, int $user_id, string $action_key )
```

## Parameters

- `$notification_id` (int) Notification ID.
- `$user_id` (int) User ID (for permission check).
- `$action_key` (string) Action key to execute.

## Return

`array{success: bool, message: string, redirect?: string}|\WP_Error`
