> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# Method name: makeProfilePrivate()

# Method package: wixMembersFrontend

# Method menu location: wixMembersFrontend --> CurrentMember --> makeProfilePrivate

# Method Link: https://dev.wix.com/docs/velo/apis/wix-members-frontend/current-member/make-profile-private.md

# Method Description:

Removes the currently logged-in member from the site community and sets their profile to private.

`makeProfilePrivate()` returns a Promise that resolves to a member object
when the member's profile privacy is updated.

When a member's profile is private,
they don't have access to the site's
[Members Area](https://support.wix.com/en/article/site-members-about-the-members-area)
features, and their profile is hidden from other members and site visitors.

> **Notes:**
> - The member data in the resolved promise will only include custom fields from a site's contacts if those [fields are added to a site's members in a dashboard](https://support.wix.com/en/article/site-members-customizing-your-member-profile-fields).
> - The frontend Members APIs aren't fully functional when previewing a site. View a published version of a site to see their complete functionality.
> - If a public member profile changes to private, their public content (such as forum posts and blog comments) remain publicly visible.



# Method Code Examples:

*** Note: do not assume any prop names or enum values other than the ones in the example.

## Make the currently logged-in member's profile private

```javascript
import { currentMember } from 'wix-members-frontend';

// ...

currentMember.makeProfilePrivate()
  .then((updatedMember) => {
    const newPrivacyStatus = updatedMember.privacyStatus;
    console.log('Privacy status was changed to', newPrivacyStatus);
  })
  .catch((error) => {
    console.error(error);
  });

/* Returned member object:
 * {
 *   "_id": "f32cbc51-a331-442b-86c2-2c664613e8b9",
 *   "_createdDate": "2021-08-02T23:14:42Z",
 *   "_updatedDate": "2021-08-02T23:14:58.345Z",
 *   "lastLoginDate": "2021-08-12T19:46:33Z",
 *   "loginEmail": "claude.morales@example.com",
 *   "contactId": "f32cbc51-a331-442b-86c2-2c664613e8b9",
 *   "status": "APPROVED",
 *   "privacyStatus": "PRIVATE",
 *   "activityStatus": "ACTIVE",
 *   "profile": {
 *     "nickname": "Claude Morales",
 *     "slug": "claudemorales"
 *   },
 *   "contactDetails": {
 *     "firstName": "Claude",
 *     "lastName": "Morales",
 *     "phones": [
 *       "0747-769-460"
 *     ],
 *     "emails": [
 *       "claude.morales@example.com"
 *     ],
 *     "addresses": [
 *       {
 *         "country": "GB"
 *       },
 *       {
 *         "id": "f0f4d905-488d-44db-9080-fc29078cfad5",
 *         "addressLine": "9373 Park Avenue",
 *         "addressLine2": "Berkshire",
 *         "city": "Ely",
 *         "subdivision": "GB-ENG",
 *         "country": "GB",
 *         "postalCode": "PD50 8EU"
 *       }
 *     ],
 *     "customFields": {}
 *   }
 * }
 */
```

---