Send Nested Form notification when child entry is submitted

Code

Filename: gpnf-should-send-notification.php

<?php
/**
 * Gravity Perks // Nested Forms // Send Nested Form notification when child entry is submitted
 * https://gravitywiz.com/documentation/gravity-forms-nested-forms/
 */
add_filter( 'gpnf_should_send_notification', function( $should_send_notification, $notification, $context ) {
	return $context == 'child';
}, 10, 3 );

Leave a Reply

Your email address will not be published. Required fields are marked *

  • Trouble installing this snippet? See our troubleshooting tips.
  • Need to include code? Create a gist and link to it in your comment.
  • Reporting a bug? Provide a URL where this issue can be recreated.

By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.