Skip to content

Commit 46af992

Browse files
authored
gw-dyn-pop-unix-timestamp.php: Migrated from GitHub Gists. (#565)
1 parent e808de3 commit 46af992

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
/**
3+
* Gravity Wiz // Gravity Forms // Dynamically Populate Unix Timestamp
4+
* http://gravitywiz.com/use-gravity-forms-conditional-logic-with-dates/
5+
*
6+
* Set a field's dynamic population parameter to "timestamp" to populate the current Unix timestamp.
7+
*/
8+
add_filter( 'gform_field_value_timestamp', function ( $value ) {
9+
return time();
10+
} );

0 commit comments

Comments
 (0)