Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save spivurno/f640c718907f238118f70b9a74defde3 to your computer and use it in GitHub Desktop.
Save spivurno/f640c718907f238118f70b9a74defde3 to your computer and use it in GitHub Desktop.
Gravity Perks // GP Post Content Merge Tags // Replace Merge Tags via Code
<?php ob_start(); ?>
ALL TEMPLATE CODE GOES HERE, INSIDE THE OUTPUT BUFFER.
<?php
echo gp_post_content_merge_tags()->replace_merge_tags( ob_get_clean() );
<?php
/**
* Gravity Perks // GP Post Content Merge Tags // Replace Merge Tags via Code
* http://gravitywiz.com/documentation/gravity-forms-post-content-merge-tags/
*/
if( function_exists( 'gp_post_content_merge_tags' ) ) {
gp_post_content_merge_tags()->replace_merge_tags( $content );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment