<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Hooks and Filters Example Improvement</title>
		<link>https://legacy.forums.gravityhelp.com/topic/hooks-and-filters-example-improvement</link>
		<description>Gravity Support Forums Topic: Hooks and Filters Example Improvement</description>
		<language>en-US</language>
		<pubDate>Wed, 22 Apr 2026 19:54:46 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/hooks-and-filters-example-improvement" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "Hooks and Filters Example Improvement"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/hooks-and-filters-example-improvement#post-20754</link>
			<pubDate>Thu, 17 Mar 2011 11:29:12 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">20754@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;@gmcalp The new site will launch next week along with the final releases of the products in development.  It's more than adding a wiki, it's an entirely new site (both marketing and support site, including the forums).&#60;/p&#62;
&#60;p&#62;The scope of what became Gravity Forms v1.5, the new site, etc. expanded greatly from our initial plans.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gmcalp on "Hooks and Filters Example Improvement"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/hooks-and-filters-example-improvement#post-20731</link>
			<pubDate>Thu, 17 Mar 2011 01:35:18 +0000</pubDate>
			<dc:creator>gmcalp</dc:creator>
			<guid isPermaLink="false">20731@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Carl, it's been 6 months since your post above announcing the fact you are doing an overhaul of the documentation. Any idea when the wiki is going to be launched?&#60;/p&#62;
&#60;p&#62;I would still like to use hooks/filters but am still not quite sure how to implement them.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gmcalp on "Hooks and Filters Example Improvement"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/hooks-and-filters-example-improvement#post-9349</link>
			<pubDate>Fri, 03 Sep 2010 14:47:36 +0000</pubDate>
			<dc:creator>gmcalp</dc:creator>
			<guid isPermaLink="false">9349@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;So, to use the above code, how exactly would I call that in a page template? How would I define which form to get the data from?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Hooks and Filters Example Improvement"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/hooks-and-filters-example-improvement#post-9286</link>
			<pubDate>Thu, 02 Sep 2010 11:49:28 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">9286@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Once the integration between MediaWiki and our support site has been completed.  Hopefully within the next couple weeks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gmcalp on "Hooks and Filters Example Improvement"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/hooks-and-filters-example-improvement#post-9280</link>
			<pubDate>Thu, 02 Sep 2010 11:08:33 +0000</pubDate>
			<dc:creator>gmcalp</dc:creator>
			<guid isPermaLink="false">9280@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Carl, when will the new MediaWiki pages become available?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>m4change on "Hooks and Filters Example Improvement"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/hooks-and-filters-example-improvement#post-9205</link>
			<pubDate>Tue, 31 Aug 2010 15:34:18 +0000</pubDate>
			<dc:creator>m4change</dc:creator>
			<guid isPermaLink="false">9205@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Awesome, glad to hear.  I look forward to seeing how this project grows.&#60;/p&#62;
&#60;p&#62;While a few things are unfortunately not catering to my immediate needs, I have no doubt it will grow to suit them.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Hooks and Filters Example Improvement"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/hooks-and-filters-example-improvement#post-9203</link>
			<pubDate>Tue, 31 Aug 2010 15:28:40 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">9203@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The documentation is getting ready to overhauled entirely.  The content is ready, we are working on the integration as we are using MediaWiki to manage the content.  The Developer related documentation is much more extensive and covers all of the available API hooks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>m4change on "Hooks and Filters Example Improvement"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/hooks-and-filters-example-improvement#post-9189</link>
			<pubDate>Tue, 31 Aug 2010 14:09:07 +0000</pubDate>
			<dc:creator>m4change</dc:creator>
			<guid isPermaLink="false">9189@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The second example on this page has hardcoded table prefixes: &#60;a href=&#34;http://www.gravityhelp.com/documentation/hooks-and-filters/&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/hooks-and-filters/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;This could easily confuse someone less familiar with SQL / hacking wordpress.&#60;/p&#62;
&#60;p&#62;Below is an example that will work with any table prefix, not just &#34;wp_&#34;&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;quot;gform_post_submission&#38;quot;, &#38;quot;post_submission_handler&#38;quot;);
function post_submission_handler($entry){
    global $wpdb;

	$t_rg_lead = $wpdb-&#38;gt;prefix . &#38;quot;rg_lead&#38;quot;;
	$t_rg_lead_detail = $wpdb-&#38;gt;prefix . &#38;quot;rg_lead_detail&#38;quot;;

    $results = $wpdb-&#38;gt;get_results($wpdb-&#38;gt;prepare(&#38;quot;  SELECT l.*, field_number, value
                            FROM $t_rg_lead l
                            INNER JOIN $t_rg_lead_detail ld ON l.id = ld.lead_id
                            WHERE l.id=%d
                            ORDER BY  l.id, field_number&#38;quot;, $entry[&#38;quot;id&#38;quot;]));

    foreach($results as $result){
        echo &#38;quot;&#38;lt;hr/&#38;gt;Entry Id: &#38;quot; . $result-&#38;gt;id . &#38;quot;&#38;lt;br/&#38;gt;&#38;quot;;
        echo &#38;quot;Field Number: &#38;quot; . $result-&#38;gt;field_number . &#38;quot;&#38;lt;br/&#38;gt;&#38;quot;;
        echo &#38;quot;Field Value: &#38;quot; . $result-&#38;gt;value . &#38;quot;&#38;lt;br/&#38;gt;&#38;quot;;
    }
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
