We have the bank account number stored in a custom field but when using it in emails we want/need to show only the last 3 digits of the bank account with a * in front of it (e.g. *456).
Is it somehow possible to mask data of a custom field when using it in an email?
Most of the magic happens here: EventListener/EmailSubscriber.php, plugin needs field iban to function correctly and it registers a custom token: {ibanmasked}