<?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: Automatically setting submitted posts to private</title>
		<link>https://legacy.forums.gravityhelp.com/topic/automatically-setting-submitted-posts-to-private</link>
		<description>Gravity Support Forums Topic: Automatically setting submitted posts to private</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 10:08:34 +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/automatically-setting-submitted-posts-to-private" rel="self" type="application/rss+xml" />

		<item>
			<title>sascha on "Automatically setting submitted posts to private"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatically-setting-submitted-posts-to-private#post-46724</link>
			<pubDate>Wed, 18 Jan 2012 12:27:22 +0000</pubDate>
			<dc:creator>sascha</dc:creator>
			<guid isPermaLink="false">46724@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi there,&#60;br /&#62;
Could that option &#38;lt;option value=&#34;private&#34;&#38;gt;&#38;lt;?php _e(&#34;Private&#34;, &#34;gravityforms&#34;) ?&#38;gt;&#38;lt;/option&#38;gt; be added to the GF code for a next update?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sascha on "Automatically setting submitted posts to private"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatically-setting-submitted-posts-to-private#post-32495</link>
			<pubDate>Sun, 14 Aug 2011 16:35:06 +0000</pubDate>
			<dc:creator>sascha</dc:creator>
			<guid isPermaLink="false">32495@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You can add a line of code to form_detail.php to get it showing as an option. Of course that will be overwritten as soon as you upgrade. Look at lines 983-985, they create the options that are shown. You add another line:&#60;br /&#62;
&#38;lt;option value=&#34;private&#34;&#38;gt;Private&#38;lt;/option&#38;gt;&#60;br /&#62;
to give you the Private option as a dropdown. Not sure if you can add it with a hook/filter? That would be better so it does not get overwritten each time you upgrade.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Automatically setting submitted posts to private"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatically-setting-submitted-posts-to-private#post-8486</link>
			<pubDate>Thu, 12 Aug 2010 11:33:11 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">8486@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;All customizations would go in your themes function.php file, never edit the Gravity Forms plugin files as this can cause issues and upgrades to the plugin would overwrite your work.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>AxellOnline on "Automatically setting submitted posts to private"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatically-setting-submitted-posts-to-private#post-8481</link>
			<pubDate>Thu, 12 Aug 2010 11:14:54 +0000</pubDate>
			<dc:creator>AxellOnline</dc:creator>
			<guid isPermaLink="false">8481@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Where do I place this code theme's function.php or the gravity form's function.php? Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>adew on "Automatically setting submitted posts to private"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatically-setting-submitted-posts-to-private#post-4775</link>
			<pubDate>Mon, 19 Apr 2010 13:53:26 +0000</pubDate>
			<dc:creator>adew</dc:creator>
			<guid isPermaLink="false">4775@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;+1&#60;/p&#62;
&#60;p&#62;This would be a very useful feature for a future release.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>RichardBest on "Automatically setting submitted posts to private"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatically-setting-submitted-posts-to-private#post-1803</link>
			<pubDate>Wed, 25 Nov 2009 23:10:22 +0000</pubDate>
			<dc:creator>RichardBest</dc:creator>
			<guid isPermaLink="false">1803@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks so much for the excellent support. Superb.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Automatically setting submitted posts to private"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatically-setting-submitted-posts-to-private#post-1802</link>
			<pubDate>Wed, 25 Nov 2009 23:02:20 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">1802@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;For all forms:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_post_data&#38;quot;, &#38;quot;private_posts&#38;quot;, 10, 2);
function private_posts($post_data, $form){
    $post_data[&#38;quot;post_status&#38;quot;] = &#38;quot;private&#38;quot;;
    return $post_data;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;For multiple forms: (in this sample, for forms 1,5 and 10)&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;quot;gform_post_data&#38;quot;, &#38;quot;private_posts&#38;quot;, 10, 2);
function private_posts($post_data, $form){
if(in_array($form[&#38;quot;id&#38;quot;], array(1,5,10))){
   $post_data[&#38;quot;post_status&#38;quot;] = &#38;quot;private&#38;quot;;
}
return $post_data;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;For multiple forms
&#60;/p&#62;</description>
		</item>
		<item>
			<title>RichardBest on "Automatically setting submitted posts to private"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatically-setting-submitted-posts-to-private#post-1801</link>
			<pubDate>Wed, 25 Nov 2009 22:56:18 +0000</pubDate>
			<dc:creator>RichardBest</dc:creator>
			<guid isPermaLink="false">1801@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sorry, but I should have asked... can this be done for multiple or all forms on the same site?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>RichardBest on "Automatically setting submitted posts to private"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatically-setting-submitted-posts-to-private#post-1800</link>
			<pubDate>Wed, 25 Nov 2009 22:52:31 +0000</pubDate>
			<dc:creator>RichardBest</dc:creator>
			<guid isPermaLink="false">1800@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Brilliant, thanks. Will try this out right now!&#60;/p&#62;
&#60;p&#62;P.S. I'm assuming I add this code to my theme's functions.php file? Will give that a crack.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Automatically setting submitted posts to private"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/automatically-setting-submitted-posts-to-private#post-1798</link>
			<pubDate>Wed, 25 Nov 2009 22:50:03 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">1798@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Richard,&#60;br /&#62;
I will look into adding &#34;Private&#34; as an option in a future release. Until then, you can use the following code snippet to set your posts to private&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
add_filter(&#34;gform_post_data&#34;, &#34;private_posts&#34;, 10, 2);&#60;br /&#62;
function private_posts($post_data, $form){&#60;br /&#62;
	if($form[&#34;id&#34;] == XXX){&#60;br /&#62;
	    $post_data[&#34;post_status&#34;] = &#34;private&#34;;&#60;br /&#62;
       }&#60;br /&#62;
	return $post_data;&#60;br /&#62;
}&#60;br /&#62;
&#60;/code&#62;&#60;br /&#62;
Replace XXX with your form id.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
