Skip to content

Instantly share code, notes, and snippets.

@MaxMSuper
Created June 7, 2017 23:41
Show Gist options
  • Save MaxMSuper/c400bf20fe8f4d393f6a4233d9b57b8a to your computer and use it in GitHub Desktop.
Save MaxMSuper/c400bf20fe8f4d393f6a4233d9b57b8a to your computer and use it in GitHub Desktop.
To allow shortcodes please open the bloom.php file and search for:
? stripslashes( html_entity_decode( $details['custom_html'], ENT_QUOTES, 'UTF-8' ) )
Replace it with:
? do_shortcode(stripslashes( html_entity_decode( $details['custom_html'], ENT_QUOTES, 'UTF-8' ) ))
@phaser32
Copy link

phaser32 commented Aug 8, 2020

Thank You MaxMSuper,
In addition to Your mod that allow to insert any shortcode in content message, I'd lie to share another tisp if You want to customize the form integration adding any shortcode, instead the form subscription to mailing list provider of Your choice, You have to set "Custom html form" and You have to do the following change in the bloom.php file:
At statement 4194 You will find this instruction:
? stripslashes( html_entity_decode( $details['custom_html'], ENT_QUOTES, 'UTF-8' ) )
You have to change it like this:
? do_shortcode(stripslashes( html_entity_decode( $details['custom_html'], ENT_QUOTES, 'UTF-8' ) ))
I hope this solution could be helpful for other people that is looking for this implementation.
Warm regards
Alessandro Valori

@iPankajKr
Copy link

@phaser32 Thanks a lot man. I was looking for something like this.

@marketingstarz
Copy link

You saved me! Thanks a lot. I had to use Gravity Forms there, and when I saw it didn't render the shortcode I started sweating. And then all searches about shortcodes and Bloom are about creating shortcodes to display Bloom. Not about displaying shortcodes within Bloom. I got lucky I found this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment