# Data_Access::get_user_poll_vote_option_index()

Which option index the user voted for, if any.

```php
get_user_poll_vote_option_index( int $post_id, int $user_id ): ?int
```

## Parameters

- `$post_id` (int) Social post ID.
- `$user_id` (int) WordPress user ID.

## Return

`int|null` Option index or null.
