if ( isset( $this->data->
$key ) ) { $value =
$this->data->
$key;
} else { if ( isset( self::
$back_compat_keys[ $key ] ) ) { $key = self::
$back_compat_keys[ $key ];
} $value =
get_user_meta( $this->ID,
$key, true
);
} if ( $this->filter
) { $value =
sanitize_user_field( $key,
$value,
$this->ID,
$this->filter
);
} return $value;
} /**
* Magic method for setting custom user fields.
*
* This method does not update custom fields in the database. It only stores
* the value on the WP_User instance.
*
* @since 3.3.0
*
* @param string $key User meta key.
* @param mixed $value User meta value.
*/