Skip to content

Commit

Permalink
Fixed issue where snippet would generate a fatal error if Nested Form…
Browse files Browse the repository at this point in the history
…s was not active.
  • Loading branch information
spivurno committed Apr 8, 2022
1 parent 662f343 commit 55cf375
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 55cf375

Please sign in to comment.