GravityBoard Developer Hooks
GravityBoard provides hooks that developers can use to extend or modify functionality.
Actions
Hook |
Description |
Parameters |
gk/gravityboard/assignees/added |
Fires when a user is assigned to a card |
$user_id (int), $entry_id (int), $feed (array), $form (array) |
gk/gravityboard/assignees/removed |
Fires when a user is unassigned from a card |
$user_id (int), $entry_id (int), $feed (array), $form (array) |
gk/gravityboard/assignees/updated |
Fires after entry assignees are updated |
$entry_id (int), $assignees (array), $feed (array), $form (array) |
Filters
Hook |
Description |
Parameters |
gk/gravityboard/card/update-card |
Allow plugins to add additional changes to the card |
$changes (array), $request (WP_REST_Request), $entry (array), $feed (array) |
gk/gravityboard/data/card |
Filter the card data before it's sent to the frontend |
$card (array), $entry (array), $feed (array) |
gk/gravityboard/data/lanes |
Filter the lanes data, including the cards, before it's sent to the frontend |
$lanes (array), $entries (array), $feed (array) |
gk/gravityboard/board-settings |
Filter the board settings before they're passed to the frontend React app |
$board_settings (array), $feed_id (int) |
gk/gravityboard/renderer/css-variable-overrides |
Filter the CSS variable overrides for the board |
$css_variable_overrides (array), $feed (array) |
gk/gravityboard/notes/filter-by-board |
Filter whether to only show notes created from the current board |
$filter_notes_by_board (bool), $board_id (int) |