• Resolved woof

    (@woof)


    Hello,

    I’m having a quite complex form modification before mail sending using filter “wpforms_email_message” and I’m a bit surprised as it does not work anymore, while I developed on it just two or three weeks ago. As far as I can see (trying to write text to log) the function I registered on that filter is not called anymore.

    I’m using the lite version of this plugin. If the filter is removed from lite I cannot find info in change logs or documentation.

    Minimal example in childs function.php:

    error_log("register my_wpf_function");
    function my_wpf_function($message, $emails) {
        error_log("called my_wpf_function");
        return $message;
    }
    add_filter('wpforms_email_message', 'my_wpf_function', 10, 2);
    

    Regards

    • This topic was modified 12 months ago by woof.
    • This topic was modified 12 months ago by woof.
    • This topic was modified 12 months ago by woof.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Prashant Rai

    (@prashantrai)

    Hey @woof – Thanks for reaching out!

    I had a chat with the developers, and in WPForms version 1.8.5, the wpforms_email_message hook was changed to wpforms_emails_notifications_message. When you have sometime, can you please try using wpforms_emails_notifications_message and let me know how it goes?

    Kindly,

    Thread Starter woof

    (@woof)

    Thank you for investigating.

    Why why why? Without notice in change log (or what do I miss?) and without updated documentation (404)?

    Yes, a filter with this name is called, but it seems not to be just a renaming but also has changed API. This is very very very annoying.

    Could you please provide further information how this filter can be used?

    • This reply was modified 12 months ago by woof.
    Thread Starter woof

    (@woof)

    Just to explain my situation and my point of view: I’ve chosen WPForms because of some specific functionality I need (“double opt in”, also for legal reasons) I thought I can realize with what this plugin offers in available API documentation. I don’t think reverse engineering or hacking would be a good choice (I don’t see myself being able to do also), I wanted to rely on official documented functionality. Hoping this would not change without further notice. The typical way to replace some functionality would have been adding the new, documenting it, marking the old as deprecated, documenting it, leaving the old for a while and then remove it (and documenting that).

    Now my fear is that the intention on your side is not to replace something with something else, better – but to remove it from documented API so it is no longer available for users? For “lite” users only?

    Hey @woof – Thanks for following up on this ticket, and I apologize for the inconvenience.

    The hook was changed as part of a series of changes to support the new/modern email notification templates in the WPForms version 1.8.5.

    Having said that, I have passed on the feedback to the dev team. Additionally, we strive to make any changes backward compatible, and I want to assure you that such occurrences are not very frequent.

    In the meantime, if you have any questions or suggestions, please feel free to reachout.

    Kindly,

    Thread Starter woof

    (@woof)

    Most urgent would be the know how of the newly added filter usage. Please update/add the documentation (or tell me in here first).

    Thread Starter woof

    (@woof)

    Okay, now there is something in the docs, will try to use it this weekend. Thanks.

    https://wpforms.com/developers/wpforms_emails_notifications_message/

    Plugin Support Ralden Souza

    (@rsouzaam)

    Hi @woof,

    I’m Ralden, jumping in here for Prashant.

    We apologize for any troubles due to the change of our filter in WPForms 1.8.5. We introduced our new Email Templates feature, and this required that change.

    As Prashant informed, the wpforms_email_message hook was changed to wpforms_emails_notifications_message, and you can access the documentation about the new hook here.?

    Thanks!

    Plugin Support Ralden Souza

    (@rsouzaam)

    Hi @woof,

    We haven’t heard back from you in a few days, so I’m going to go ahead and close this thread for now. But if you’d like us to assist further, please feel welcome to continue the conversation.

    Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Is filter “wpforms_email_message” gone?’ is closed to new replies.