spivurno
9/12/2012 - 5:41 PM

Gravity Wiz // Populate Date: Year from Current Date

Gravity Wiz // Populate Date: Year from Current Date

<?php
/**
* Populate Date: Year from Current Date
*/
add_filter('gform_field_value_year_from_date', 'gw_year_from_date');
function gw_year_from_date() {
    return date('Y-m-d', strtotime('+1 year'));
}