• Is there any plans on adding custom/extra fields on the SMS messages in a way that other plugins could “hook” and output their custom text?

    Practical example:
    I’m the developer of a Payment Gateway for WooCoomerce (https://ww.wp.xz.cn/plugins/multibanco-ifthen-software-gateway-for-woocommerce/) and I would like to add Plivo support to this plugin so that I could add the order specific payment details to the SMS sent for “On Hold” messages.

    We could achieve this in several ways:
    – You could create a special tag/field that would have a filter associated and other plugins could use that filter (where the order id should be available) and return their own custom text
    – Your plugin could have a way for other plugins to “register” custom tags/fields that would run a function on the 3rd party plugin that would return their own custom text

    https://ww.wp.xz.cn/plugins/woocommerce-plivo/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author PieterC

    (@siteoptimo)

    Dear Webdados,

    Thank you for your interest in this plugin.

    We can see why it would be interesting for third-party plugin developers to integrate with the text messages being sent. We’ll keep that in mind and we will certainly consider it when we decide to release a new version.

    Thanks for your input.

    Sincerely,

    Koen
    SiteOptimo.com

    This would be AWESOME, I’m looking for the same thing. Koen when do you think you will release this?

    Thank you
    Jorge

    Interesting! Following this topic

    Just wanted to add a simple suggestion.

    You could just add a filter to the message right before it’s ready to be sent.
    The order ID must be a argument of that filter.

    Each developer could then use that filter to do what he wants with the message.
    For instance, I could instruct my users to insert the {multibanco_details} tag on the messages templates, and then my plugin would use your new filter to replace that tag with the payment instructions. Of course it would be my plugin job to check if this specific order uses my payment gateway and replace the tag for the correct details or “blank” if the payment gateway for that order is not my plugin’s one.

    Plugin Author PieterC

    (@siteoptimo)

    Hello all,

    Good news. This feature is implemented in the latest release: 2.0.0. Please let us know what you think.

    Instructions can be found in the readme.md file.

    Regards,

    Koen

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Extra fields on the SMS – Hook’ is closed to new replies.