<?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: Try to edit a post...most hooks are not called</title>
		<link>https://legacy.forums.gravityhelp.com/topic/try-to-edit-a-postmost-hooks-are-not-called</link>
		<description>Gravity Support Forums Topic: Try to edit a post...most hooks are not called</description>
		<language>en-US</language>
		<pubDate>Wed, 22 Apr 2026 06:24:57 +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/try-to-edit-a-postmost-hooks-are-not-called" rel="self" type="application/rss+xml" />

		<item>
			<title>Dana Cobb on "Try to edit a post...most hooks are not called"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/try-to-edit-a-postmost-hooks-are-not-called#post-50834</link>
			<pubDate>Tue, 28 Feb 2012 13:13:48 +0000</pubDate>
			<dc:creator>Dana Cobb</dc:creator>
			<guid isPermaLink="false">50834@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Take a look at this forum topic which may help you with pre-populating complex fields (like address and name) - &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/whats-the-best-way-to-pre-populate-multiple-fields-on-a-single-form&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/forums/topic/whats-the-best-way-to-pre-populate-multiple-fields-on-a-single-form&#60;/a&#62; .
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cohen on "Try to edit a post...most hooks are not called"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/try-to-edit-a-postmost-hooks-are-not-called#post-50212</link>
			<pubDate>Wed, 22 Feb 2012 12:18:17 +0000</pubDate>
			<dc:creator>cohen</dc:creator>
			<guid isPermaLink="false">50212@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Dana,&#60;br /&#62;
thanks for your answer. It helped me a lot.&#60;br /&#62;
I put all the addFilter and addAction stuff in the functions.php of my theme. Now it works.&#60;br /&#62;
All the hooks are called.&#60;br /&#62;
Pre populating forms with posts and editing them now works really charming with custom post fields.&#60;br /&#62;
I just have a problem with multiple input fields like the advanced &#34;address&#34; field.&#60;br /&#62;
I am not able to pre populate such multiple fields.&#60;br /&#62;
I use the following code in my pre populate hook:&#60;/p&#62;
&#60;p&#62;function populate_data($form)&#60;br /&#62;
    {&#60;br /&#62;
        foreach ($form['fields'] as &#38;amp;$field) {&#60;br /&#62;
            if($field['inputName']!=null){&#60;br /&#62;
                $field['defaultValue']=get_post_meta($Post_ID,$post_data_name,true);&#60;br /&#62;
            }&#60;br /&#62;
            if($field['inputs']){&#60;br /&#62;
                    foreach($field['inputs'] as $input){&#60;br /&#62;
                        //is it possible to set a default value in here to set value for e.g. advanced address fields&#60;/p&#62;
&#60;p&#62;                    }&#60;br /&#62;
                }&#60;br /&#62;
        }&#60;/p&#62;
&#60;p&#62;        return $form;&#60;br /&#62;
    }&#60;/p&#62;
&#60;p&#62;Perhaps you can give me a hint how to pre populate such fields.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dana Cobb on "Try to edit a post...most hooks are not called"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/try-to-edit-a-postmost-hooks-are-not-called#post-49609</link>
			<pubDate>Thu, 16 Feb 2012 13:29:33 +0000</pubDate>
			<dc:creator>Dana Cobb</dc:creator>
			<guid isPermaLink="false">49609@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi, cohen,&#60;/p&#62;
&#60;p&#62;Are you also enqueueing the necessary scripts for Gravity Forms? When embedding a form using the function call &#34;gravity_form&#34;, you also have to manually enqueue the javascript/css files. So until you do that you will have jquery errors that may be impacting the rest of your code. Take a look at this article on how to embed the form and enqueueing the scripts: &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Embedding_A_Form&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Embedding_A_Form&#60;/a&#62; . The enqueueing needs to go in your header.&#60;/p&#62;
&#60;p&#62;Also, have you tried putting your Gravity Forms filters into your theme's functions.php file? I copied out your code and once I put them into that file, they were actually used.&#60;/p&#62;
&#60;p&#62;Try that out and let me know if you have questions.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cohen on "Try to edit a post...most hooks are not called"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/try-to-edit-a-postmost-hooks-are-not-called#post-49383</link>
			<pubDate>Tue, 14 Feb 2012 09:35:45 +0000</pubDate>
			<dc:creator>cohen</dc:creator>
			<guid isPermaLink="false">49383@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello,&#60;br /&#62;
I am trying to edit post data with gravity forms.&#60;br /&#62;
I want to have for example one custom type post &#34;contact&#34;, that holds the complete information&#60;br /&#62;
of a contact. I created an extra &#34;Contact Page&#34;-Template, that contains the Gravity form for the contact. To show the form on this page I created the function &#34;showBEForm($form_type)&#34;. $form_type is the ID of the contact form. This function is called from my page-template. Pre populating the data with the &#34;gform_pre_render&#34;-filter works correctly. But all other actions or filters (gform_pre_submission, gform_disable_post_creation, gform_pre_submission) are never called.&#60;br /&#62;
So I always get an extra contact-post by pressing submit and I am not able to edit the existing one.&#60;br /&#62;
You can find the sourcecode at &#60;a href=&#34;http://www.pastie.org/3380707&#34; rel=&#34;nofollow&#34;&#62;http://www.pastie.org/3380707&#60;/a&#62;.&#60;br /&#62;
I really hope you can help me.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
