Managing Entry Notifications with WP-CLI

By using the CLI Add-On for Gravity Forms, you can easily manage entry notifications using the command line.

Pre-Requisites

Getting Entry Notifications

wp gf entry notification get

Examples

  • Gets a table containing the form submission notifications for entry 1.

    wp gf entry notification get 1

  • Gets a table containing the payment completed notifications for entry 1.

    wp gf entry notification get 1 --event=complete_payment

  • Gets a list of payment completed notifications IDs for entry 1.

    wp gf entry notification get 1 --event=complete_payment --format=ids

Parameters

ArgumentDescription
<entry-id>The ID of the entry the notifications are for.
[<notification-id>...]Specific notification IDs to get. If set, this will override the event arg.
[--event=<value>]The notification event to retrieve.
Default: form_submission.
[--format=<value>]Defines the format in which the notifications will be listed.
Accepted values: table, ids, csv, json, yaml, and count.
Default: table.
[--raw]Outputs the raw notification properties as a JSON string.

Sending Entry Notifications

wp gf entry notification send

Examples

  • Sends the form submission notifications for entry 597.

    wp gf entry notification send 597

  • Sends the payment completed notifications for entry 597.

    wp gf entry notification send 597 --event=complete_payment

  • Sends the notifications for entry 597 which match the specified IDs.

    wp gf entry notification send 597 574ff8257d864 596e53f8104ed

Parameters

ArgumentDescription
<entry-id>The ID of the entry the notifications are to be sent for.
[<notification-id>...]The IDs of one or more specific notifications to be sent. If set, this will override the event arg.
[--event=<value>]The event to send the notifications for.
Default: form_submission.