<?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: Update a post custom form &#38; Paypal</title>
		<link>https://legacy.forums.gravityhelp.com/topic/update-a-post-custom-form-paypal</link>
		<description>Gravity Support Forums Topic: Update a post custom form &amp; Paypal</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 05:19:04 +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/update-a-post-custom-form-paypal" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Update a post custom form &#38; Paypal"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/update-a-post-custom-form-paypal#post-122624</link>
			<pubDate>Tue, 15 Jan 2013 13:47:27 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">122624@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You're welcome.  If you get stuck, let us know and we will try to help.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>popsantiago on "Update a post custom form &#38; Paypal"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/update-a-post-custom-form-paypal#post-122303</link>
			<pubDate>Tue, 15 Jan 2013 05:57:09 +0000</pubDate>
			<dc:creator>popsantiago</dc:creator>
			<guid isPermaLink="false">122303@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hey Chris &#60;/p&#62;
&#60;p&#62;That's i need !&#60;/p&#62;
&#60;p&#62;Thank you,&#60;/p&#62;
&#60;p&#62;Pop
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Update a post custom form &#38; Paypal"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/update-a-post-custom-form-paypal#post-121565</link>
			<pubDate>Mon, 14 Jan 2013 10:27:12 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">121565@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Are you saying you want to update a post which already exists, after getting a PayPal payment, with the new expiration date or how long the post should stay visible?  The post (ad) already exists, and you are giving the opportunity to run the ad longer, by making a PayPal payment?&#60;/p&#62;
&#60;p&#62;If that is true, I don't think it will be too difficult. You can pre-populate the form as you are doing with the query string link and the post_id in it.  That will get you the post_id.  Then, use the field value where that is stored to update the post meta:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
$post_id = $entry[&#38;#39;field_id_where_post_id_is_stored&#38;#39;];
$expires = &#38;#39;whatever your expiration date is&#38;#39;;
update_post_meta($post_id, &#38;#39; is_featured&#38;#39;, $expires);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You will have to figure out how to calculate the expiration date, then use that in your custom post template to not show posts with expired dates in the meta key.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>popsantiago on "Update a post custom form &#38; Paypal"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/update-a-post-custom-form-paypal#post-120949</link>
			<pubDate>Sun, 13 Jan 2013 16:09:30 +0000</pubDate>
			<dc:creator>popsantiago</dc:creator>
			<guid isPermaLink="false">120949@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hi Chris,&#60;/p&#62;
&#60;p&#62;I  created a form to post an ads (CPT) on my website with GF, i used the paypal add-on to give the possibility to add the ad to featured ads (checkbox/product/paypal). This part is done.&#60;/p&#62;
&#60;p&#62;But maybe customer want to put on featured ads his content in second time. So that's why i would like to add the possibility to pay for that :&#60;br /&#62;
=&#38;gt; update meta_key = is_featured (7 days / 15days, etc.)&#60;/p&#62;
&#60;p&#62;Can you confirm me if i go to the right way plz ?&#60;br /&#62;
If i want use your example of function, i need to create a new form (called by mysite.com/myformfeature/?post_id=XX) with paypal add-on with dynamic value for an hidden field that will be the post_id and that's done ? (after added your function in the paypal.php file)&#60;/p&#62;
&#60;p&#62;To display post i would like to query post with : is_featured / now() / date(SubmissionFeature).&#60;/p&#62;
&#60;p&#62;If i use your function example, what's date value will be update ? get_the_modified_date() or get_the_date( ).&#60;br /&#62;
Or to do my calculation do you think it's easier to save the date of transaction in a hidden field ?&#60;/p&#62;
&#60;p&#62;I hope you will understand my bad english =/ &#60;/p&#62;
&#60;p&#62;See you.&#60;/p&#62;
&#60;p&#62;Pop
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Update a post custom form &#38; Paypal"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/update-a-post-custom-form-paypal#post-120558</link>
			<pubDate>Sat, 12 Jan 2013 23:22:12 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">120558@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You can use the gform_paypal_fulfillment hook to run actions when a PayPal transaction is completed.  &#60;a href=&#34;http://www.gravityhelp.com/documentation/page/Gform_paypal_fulfillment&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityhelp.com/documentation/page/Gform_paypal_fulfillment&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;You can write a function that updates a post and adds the information to the custom field.  We'll need more information from you to be able to give you more specific assistance.  The code will look something like this:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;[php]
add_action(&#38;quot;gform_paypal_fulfillment&#38;quot;, &#38;quot;update_custom_field&#38;quot;, 10, 4);
function update_custom_field($entry, $config, $transaction_id, $amount) {
    $post_id = $entry[&#38;#39;post_id&#38;#39;];
    // define your meta key name here
    $meta_key = &#38;#39;custom_field_name&#38;#39;;
    // write the transaction ID to the meta key
    update_post_meta($post_id, $meta_key, $transaction_id);
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>popsantiago on "Update a post custom form &#38; Paypal"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/update-a-post-custom-form-paypal#post-120437</link>
			<pubDate>Sat, 12 Jan 2013 16:29:47 +0000</pubDate>
			<dc:creator>popsantiago</dc:creator>
			<guid isPermaLink="false">120437@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello &#60;/p&#62;
&#60;p&#62;How can i update a custom field of custom post type after a paypal paiement using gravityform ?&#60;br /&#62;
Do you have any idea or documentation ?&#60;/p&#62;
&#60;p&#62;Thank you,&#60;/p&#62;
&#60;p&#62;Pop
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
