Special characters in initiator.name token
-
Using WordPress 4.4.2 and BuddyPress 2.5.1
Wasn’t sure how to fix this. I’m running into a problem with one of the email tokens (initiator.name). If the initiator’s name has a special character like an apostrophe (e.g. O’Neil), the HTML display works fine in the message body but the encoded version of the text is appearing in the subject.
I took a look at the documentation but wasn’t seeing anything I could change other than using {{token}} or {{{token}}}. Neither versions worked on the subject text.
[{{{site.name}}}] New friendship request from {{initiator.name}}
[{{{site.name}}}] New friendship request from {{{initiator.name}}}Is there anything I can add to my child theme’s functions.php to correct that? Didn’t know if there was away to create our own token to make an decoded version of that text.
- You must be logged in to reply to this topic.