So I understand that this returns a value from the usermeta table:
add_filter('gform_field_value_user_firstname', create_function("", '$value = populate_usermeta(\'first_name\'); return $value;' ));
How do I do it if the field in the table is serialized?
I want to prepopulate a gravityform field that I have given the parameter "phone" It is serialized in a field called mp_billing_info as 'phone'
Here's the data that is in that field:
a:9:{s:5:"email";s:0:"";s:4:"name";s:17:"Billing Full Name";s:8:"address1";s:11:"Billing One";s:8:"address2";s:12:"Billing Two ";s:4:"city";s:12:"Billing City";s:5:"state";s:2:"GA";s:3:"zip";s:5:"30360";s:7:"country";s:2:"US";s:5:"phone";s:10:"7705555555";}
Help!