Hi,
I am using the User registration add-on and am trying to edit one of my custom meta fields (the phone field. I have this mostly working.
I'm using this function to get the phone data and strip all non numeric characters. The problem is I'm unsure how to send my modified data back to the meta data before it's inserted into the WP user_meta table.
add_action("gform_pre_submission_1", "ba_signup_pre_submission_handler");
function ba_signup_pre_submission_handler($form_meta){
//handling single-input fields such as text and paragraph (textarea)
// get data from forum
$phone = $_POST["input_3"];
//strip off all non-numbers
$phone_numbers = preg_replace("/[^0-9]/", "", $phone );
//send back to add-on (this step isnt' working)
$_POST["input_3"] = $phone_numbers;
}
I know the first two steps are working it's just the sending back that's a problem. Any help would be great.
Brooke