<?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: add_action upon post published with custom field</title>
		<link>https://legacy.forums.gravityhelp.com/topic/add_action-upon-post-published-with-custom-field</link>
		<description>Gravity Support Forums Topic: add_action upon post published with custom field</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 19:59:45 +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/add_action-upon-post-published-with-custom-field" rel="self" type="application/rss+xml" />

		<item>
			<title>mboisson on "add_action upon post published with custom field"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/add_action-upon-post-published-with-custom-field#post-5884</link>
			<pubDate>Sun, 30 May 2010 12:05:05 +0000</pubDate>
			<dc:creator>mboisson</dc:creator>
			<guid isPermaLink="false">5884@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello, I'm hoping you can help with this.&#60;/p&#62;
&#60;p&#62;I have users submitting posts that are published directly. I do not want to administer them, so that is not an option for me. &#60;/p&#62;
&#60;p&#62;They are submitting, among other things, a date custom field called &#34;event_date&#34;.&#60;br /&#62;
I have a little function that converts the event_date into a timestamp and saves it in a new custom field called &#34;date_value&#34;.&#60;/p&#62;
&#60;p&#62;I have the conversion and save happening on 'save_post' like this:&#60;br /&#62;
&#60;code&#62;add_action(&#38;#39;save_post&#38;#39;, &#38;#39;mb_convertToTimestamp&#38;#39;, $postid);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;This works fine for posts submmitted through the Wordpress backend.&#60;br /&#62;
However it doesn't seem to work with posts submitted through the gravity form. Date_value is empty.&#60;/p&#62;
&#60;p&#62;Any thoughts? I've also tried it on &#34;publish_post&#34; and it doesn't work either.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
