Support » Plugin: Contact Form to Manage and respond to conversations with customers — HappyForms » happyforms_submission_success action hook parameters

  • Resolved Parsa



    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)
  • Plugin Author thethemefoundry


    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)
  • You must be logged in to reply to this topic.