user metadata is lost upon profile update
-
I created several user meta fields on this User Meta pro plugin. I use theme my login plugin, too. When I update user profiles using custom profile edit page, user meta data created in this user meta plugin are lost.
I debuged the code and I found that if I changed profileUpdate() in umBackendProfileController.php, meta data weren’t lost.
For example, this code below (in profileUpdate func).
if( empty( $fieldName ) ) continue;
if( empty( $_POST[$fieldName] ) ) continue; // added by me
$userData[ $fieldName ] = @$_POST[ $fieldName ];Of course this modification prevents checkboxes to be unchecked at all.
What’s the right solution I should take?
(plugin version is 1.1.4 pro)
- The topic ‘user metadata is lost upon profile update’ is closed to new replies.