Skip to content

Commit

Permalink
Fix: Display Taxonomy Field data in user profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
reygcalantaol committed Nov 25, 2023
1 parent dce2cc1 commit 97a50b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/fields/class-wpum-field.php
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ public function set_user_meta( $user_id ) {
$value = $user->data->user_email;
break;
}
} elseif ( strpos( $this->get_meta( 'user_meta_key' ), 'wpum_' ) === 0 ) {
} elseif ( strpos( $this->get_meta( 'user_meta_key' ), 'wpum_' ) === 0 && $this->get_type() !== 'taxonomy' ) {
$value = \WPUM\carbon_get_user_meta( $user_id, $this->get_meta( 'user_meta_key' ) );
} else {
$value = get_user_meta( $user_id, $this->get_meta( 'user_meta_key' ), true );
Expand Down

0 comments on commit 97a50b0

Please sign in to comment.