Skip to content

Commit cd0b2ff

Browse files
committed
use user object to get_field
1 parent f041373 commit cd0b2ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/Models/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public function get_meta( string $key, $format = true ) {
207207
return get_user_meta( $this->get_id(), $key, true );
208208
}
209209

210-
return get_field( $key, 'user_' . $this->get_id(), $format );
210+
return get_field( $key, $this->user, $format );
211211
}
212212

213213
/**

0 commit comments

Comments
 (0)