Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.