---
id: gk-gravityboard-voting-can-spend-vote
title: "Filter - gk/gravityboard/voting/can-spend-vote"
sidebar_label: "gk/gravityboard/voting/can-spend-vote"
tags:
  - "1.4.0"
---

# Filter: gk/gravityboard/voting/can-spend-vote

Filters whether a user can spend a vote.

Return true to allow or a WP_Error to deny with a message.

## Parameters

| Name | Type | Description |
|------|------|-------------|
| $allowed | `true` | Whether the vote is allowed. |
| $feed_id | `int` | The feed ID. |
| $user_id | `int` | The user ID. |
| $entry_id | `int` | The entry (card) ID. |
| $budget | `array` | Budget info from get_budget(). |

### Since

- [1.4.0](../../since/1-4-0/)

### Source

Defined in `src/Voting/VoteBudget.php` at line 146

