Changes the currently logged-in member's slug.
The updateSlug()
function returns a Promise that resolves to a member
after the member's slug is changed.
Note:
The APIs in CurrentMember
are only partially functional when previewing your site. View a published version of your site to see their complete functionality.
New slug.