if (strpos($k, 'helper') === false) { $fieldId = preg_replace("/[^0-9]+/", "", $k); $response = $user->setCustomData($fieldId, $v); if (MM_Response::isError($response)) { if (!empty($v)) { $message = $response->message; } } } } } // does account update event need to be dispatched? $fields = MM_CustomField::getCustomFieldsList(); foreach ($fields as $id => $val) { if (MM_CustomFieldData::wasRecentlyUpdated($id, $user->getId())) { do_action(MM_Event::$MEMBER_ACCOUNT_UPDATE, MM_Event::packageMemberData($user->getId())); break; } } if (empty($message)) { $message = "Custom fields updated successfully"; } } $fields = MM_CustomField::getCustomFieldDataByUser($user->getId()); ?> <style> .mm-short-text-field { width: 250px; } .mm-long-text-field { width:400px; height:75px; } .mm-radio-button { display:block; clear:both; } </style> <form name='mm_custom_post' method='post'>