• Resolved Parsa

    (@parselearn)


    Hello

    Why do you send the third parameter with blank array value?

    do_action( 'happyforms_submission_success', $submission, $form, array() );

    remove third parameter is better

    do_action( 'happyforms_submission_success', $submission, $form );

Viewing 1 replies (of 1 total)
  • Hey there, @parselearn!

    That empty array parameter is actually needed for compatibility reasons:

    1. On previous versions, that parameter wasn’t empty (although it was optional). To avoid breaking user customizations it’s important that third parameters is at least defined.
    2. This code is actually shared across our free and paid plans, and paid plans require that parameter to be populated.

    I hope this clears your doubts! Let us know what you think.

Viewing 1 replies (of 1 total)
  • The topic ‘happyforms_submission_success action hook parameters’ is closed to new replies.