Support

Home Forums Event Espresso Premium EE4 removes header and strong tags in payment methods

EE4 removes header and strong tags in payment methods

Posted: June 21, 2014 at 2:44 pm


sakirose

June 21, 2014 at 2:44 pm

I am entering content in the Pay by Check method and would like to add bold or header tags, but these html tags are removed when I save.

See link below:
https://www.dropbox.com/s/jil6r1fnaxvy9rn/bold.png


Lorenzo Orlando Caum

  • Support Staff

June 22, 2014 at 12:26 am

Hi,

Those are stored as serialized data in wp_options so you can’t use certain html tags.

Set the payment information to this:

check payment information

http://cl.ly/image/061G2a0l3B3E

Then use an str replace function to setup your custom message:

function ee_override_check_information($content)
{
$content = str_replace('check payment information', '<a href="http://example.com">Click here to make your payment</a>. Your payments will be <strong>processed securely</strong>.',$content);
return $content;
}
add_filter('the_content','ee_override_check_information', 200);

Here is what it will look like:

http://cl.ly/image/0d3o3E0T2P0f

The function can be added to your child theme’s functions.php or a site specific plugin:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


Lorenzo

The support post ‘EE4 removes header and strong tags in payment methods’ 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.

Event Espresso