Gravity Forms offers a hook to modify field values when exporting an entry list using the gform_export_field_value
hook. They show an example on how to change the User ID to the User Display Name on Export in their documentation.
I'm looking to change the Date Format for the Entry Date field. Here is what I have so far but doesn't seem to be working:
add_filter( 'gform_export_field_value', 'export_entry_date_value', 10, 4 );
function export_entry_date_value( $value, $form_id, $field_id, $entry ) {
if( $field_id == 'date_created' ) {
return !empty( $value ) ? date('F', strtotime($value) ) : $value;
}
return $value;
}
Here is information on the hook: gform_export_field_value
Any ideas?