makeProfilePrivate( )


Removes the currently logged-in member from the site community and sets their profile to private.

について makeProfilePrivate() function 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 do not have access to the site's Members Area features, and their profile is hidden from other members and site visitors.

注釈

  • The member data in the resolved promise will only include custom fields from your site's contacts if they are added to your site Members in your site's dashboard.
  • The APIs in CurrentMember are only partially functional when previewing your site. View a published version of your 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.
メソッド宣言
コピー
リクエスト
このメソッドはパラメータを取らない
リターン
Return Type:Promise<Member>
役に立ちましたか?
はい
いいえ