{"id":3749,"date":"2018-03-06T13:59:00","date_gmt":"2018-03-06T13:59:00","guid":{"rendered":"https:\/\/purelysupp.com\/wordpress\/?p=3749"},"modified":"2022-10-17T13:33:05","modified_gmt":"2022-10-17T13:33:05","slug":"add-a-conditional-timestamp-in-gravity-forms","status":"publish","type":"post","link":"https:\/\/purelysupp.com\/wordpress\/code-snippets\/add-a-conditional-timestamp-in-gravity-forms\/","title":{"rendered":"Add A Conditional Timestamp in Gravity Forms"},"content":{"rendered":"\n<p>Add the following code to your WordPress theme&#8217;s function.php file, or a functionality plugin to add a conditional timestamp to Gravity Forms.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/**\n * Use Gravity Forms Conditional Logic with Dates\n * http:\/\/gravitywiz.com\/use-gravity-forms-conditional-logic-with-dates\/\n *\/\nadd_filter(\"gform_field_value_timestamp\", \"gwiz_populate_timestamp\");\nfunction gwiz_populate_timestamp( $value ){\n    return time();\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Add the following code to your WordPress theme&#8217;s function.php file, or a functionality plugin to add a conditional timestamp to Gravity Forms.<\/p>\n","protected":false},"author":1,"featured_media":10528,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","iawp_total_views":4,"wds_primary_category":56,"footnotes":""},"categories":[56,58],"tags":[],"class_list":{"0":"post-3749","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-code-snippets","8":"category-plugins","9":"entry"},"featured_image_src":"https:\/\/purelysupp.com\/wordpress\/wp-content\/uploads\/sites\/2\/2022\/09\/wordpress_plugin-600x400.jpg","featured_image_src_square":"https:\/\/purelysupp.com\/wordpress\/wp-content\/uploads\/sites\/2\/2022\/09\/wordpress_plugin-600x591.jpg","author_info":{"display_name":"Jack Alltrade","author_link":"https:\/\/purelysupp.com\/wordpress\/author\/jacka11trade\/"},"_links":{"self":[{"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/posts\/3749","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/comments?post=3749"}],"version-history":[{"count":2,"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/posts\/3749\/revisions"}],"predecessor-version":[{"id":10713,"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/posts\/3749\/revisions\/10713"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/media\/10528"}],"wp:attachment":[{"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/media?parent=3749"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/categories?post=3749"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/purelysupp.com\/wordpress\/wp-json\/wp\/v2\/tags?post=3749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}