Populate Date One Year from Current Date
Instructions
See “Where do I put snippets?” in our documentation for installation instructions.
Read the Walkthrough
Code
Filename: gw-populate-date-year-from-today.php
<?php
/**
** Gravity Wiz // Gravity Forms // Populate Date One Year from Current Date
* https://gravitywiz.com/populate-date-one-year-from-current-date/
*
*/
add_filter('gform_field_value_year_from_date', function() {
return gmdate( 'Y-m-d', strtotime( '+1 year' ) );
} );