Exemplo n.º 1
0
        remove_filter('gform_merge_tag_filter', array('GWPreviewConfirmation', 'preview_special_merge_tags'));
        return $content;
    }
    public static function clear_field_value_cache($form)
    {
        if (!class_exists('GFCache')) {
            return;
        }
        foreach ($form['fields'] as &$field) {
            if (GFFormsModel::get_input_type($field) == 'total') {
                GFCache::delete('GFFormsModel::get_lead_field_value__' . $field['id']);
            }
        }
    }
}
GWPreviewConfirmation::init();
/**
 * Gravity Wiz // Gravity Forms Post Content Merge Tags
 *
 * Adds support for using Gravity Form merge tags in your post content. This functionality requires that the entry ID is
 * is passed to the post via the "eid" parameter.
 *
 * Setup your confirmation page (requires GFv1.8) or confirmation URL "Redirect Query String" setting to
 * include this parameter: 'eid={entry_id}'. You can then use any entry-based merge tag in your post content.
 *
 * @version   1.2
 * @author    David Smith <*****@*****.**>
 * @license   GPL-2.0+
 * @link      http://gravitywiz.com/...
 * @video     http://screencast.com/t/g6Y12zOf4
 * @copyright 2014 Gravity Wiz