Support

Home Forums WP User Integration Replacing strings

Replacing strings

Posted: April 1, 2019 at 6:24 am


T R

April 1, 2019 at 6:24 am

Hi there, I was using a custom function to replace a string for the ticket selector table as referenced here: https://eventespresso.com/topic/wp-user-change-is-available-to-members-only/#post-180663. We have updated to the most recent version but now it is displaying as code in the front end. We have some HTML in the string for links, etc. so wondering how we can get it to display properly?

An example is here: https://www.siwakorea.com/events/moms-and-tots-music-and-movement-class-201904/

Thanks for any help.


Tony

  • Support Staff

April 1, 2019 at 7:43 am

Hi there,

The function used to output the text escapes any HTML passed to it, so you’ll need to switch to use the filter available for that string, see:

https://gist.github.com/Pebblo/783dc4f9f43b9780d860112817edfd6d

The support post ‘Replacing strings’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Status: closed

Updated by  Tony 2 months, 2 weeks ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!