Extra fields on the SMS – Hook
-
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
The topic ‘Extra fields on the SMS – Hook’ is closed to new replies.