diff --git a/gp-nested-forms/gpnf-delay-child-notifications-for-parent-payment.php b/gp-nested-forms/gpnf-delay-child-notifications-for-parent-payment.php index 0c495685f..a684dccdb 100644 --- a/gp-nested-forms/gpnf-delay-child-notifications-for-parent-payment.php +++ b/gp-nested-forms/gpnf-delay-child-notifications-for-parent-payment.php @@ -28,6 +28,10 @@ public function __construct( $args = array() ) { public function init() { + if ( ! is_callable( 'gpnf_notification_processing' ) ) { + return; + } + add_filter( 'gpnf_should_send_notification', array( $this, 'gpnf_should_send_notification' ), 10, 7 ); add_action( 'gform_post_payment_completed', array( $this, 'gform_post_payment_completed' ) ); // Removing this filter causes the original issue of double notification to occur, see HS#23899 PR #85