spivurno
3/5/2014 - 3:44 PM

Gravity Wiz // Add Custom Notification Event to Gravity Forms

Gravity Wiz // Add Custom Notification Event to Gravity Forms

<?php
/**
 * Gravity Wiz // Add Custom Notification Event to Gravity Forms
 * http://gravitywiz.com
 */
add_filter( 'gform_notification_events', 'my_custom_notification_event' );
function my_custom_notification_event( $events ) {
    // update 'My Custom Notification Event' to the user-friendly name of your notification event
    // update 'my_custom_notification_event' to match your user-friendly name (it is a good practice to lowercase it and replace spaces with underscores)
    $events['my_custom_notification_event'] = __( 'My Custom Notification Event' );
    return $events;
}