Using Gravity Forms ‘gform_breeze_card’ PHP filter

The gform_breeze_card filter in the Gravity Forms Breeze Add-On allows you to modify the card that is created by the add-on.

Usage

add_filter('gform_breeze_card', 'my_custom_function', 10, 4);

Parameters

  • $card (array) – The card that is being filtered.
  • $feed (array) – The feed object.
  • $entry (array) – The entry object.
  • $form (array) – The form object.

More information

See Gravity Forms Docs: gform_breeze_card

Examples

Modify card title

Change the card title before it’s created in Breeze.

function modify_card_title($card, $feed, $entry, $form) {
    // Change card title
    $card['title'] = 'New Card Title';

    return $card;
}
add_filter('gform_breeze_card', 'modify_card_title', 10, 4);

Add custom description to card

Append custom description to the card’s description in Breeze.

function append_custom_description($card, $feed, $entry, $form) {
    // Add custom description to card
    $card['description'] .= ' Custom description text.';

    return $card;
}
add_filter('gform_breeze_card', 'append_custom_description', 10, 4);

Set card due date

Set the card’s due date based on the form entry.

function set_due_date($card, $feed, $entry, $form) {
    // Set card due date based on entry data
    $card['due_date'] = $entry['3']; // Assuming field 3 contains the due date

    return $card;
}
add_filter('gform_breeze_card', 'set_due_date', 10, 4);

Set card assignee

Assign the card to a specific user based on the form entry.

function set_card_assignee($card, $feed, $entry, $form) {
    // Set card assignee based on entry data
    $card['assignee'] = $entry['4']; // Assuming field 4 contains the assignee's email

    return $card;
}
add_filter('gform_breeze_card', 'set_card_assignee', 10, 4);

Modify card tags

Add or modify tags for the card in Breeze.

function modify_card_tags($card, $feed, $entry, $form) {
    // Add a new tag to the card
    $card['tags'][] = 'New Tag';

    return $card;
}
add_filter('gform_breeze_card', 'modify_card_tags', 10, 4);