Deprecated. This function will continue to work, but a newer version is available at getMember().
Retrieves a member by ID.
This function returns a Promise that resolves to a member object.
Note: The resolved Member object contains only the fields that were explicity added to the Member object. Custom Contact fields are not automatically added to the Member object. They must be added to the Member object by the site owner.
If this function is already in your code, it will continue to work. To stay compatible with future changes, migrate to getMember().
To migrate to the new function:
Add the new import statement:
Test your changes to make sure your code behaves as expected.
Member ID.
Fieldset options.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.