Skip to content

Instantly share code, notes, and snippets.

View FPCSJames's full-sized avatar

James M. Joyce FPCSJames

View GitHub Profile
@FPCSJames
FPCSJames / gw-gravity-forms-rename-uploaded-files-usage.php
Last active July 25, 2017 23:49 — forked from spivurno/gw-gravity-forms-rename-uploaded-files-usage.php
Gravity Wiz // Gravity Forms // Rename Uploaded Files
<?php
# First and Last Name
new GW_Rename_Uploaded_Files( array(
'form_id' => 628,
'field_id' => 3,
'template' => '{Name (First):1.3}-{Name (Last):1.6}-{filename}' // most merge tags are supported, original file extension is preserved
) );
# Form Title Merge Tag