Apparently this code does not work. The problem is described as:
Parse error: syntax error, unexpected T_DOUBLE_ARROW
My code:
if(isset($_POST['my_custom_contact'])) {
$registration_data[] = 'custom_contact' => $_POST['my_custom_contact'];
}
How should I rewrite that associative bit?
Depending on what you want to do (I haven’t understand it), it can be this:
or