Private content setup

Overview

This document provides instructions on how to set up the Private Content extension. This extension provides logged-in users with content that only they can access and view. Private content can be added by the website admins. Members can see their private content in the profile tab "Private Content".

Note: This extension displays unique content for each member. We recommend using the Ultimate Member - Profile tabs extension to create a profile tab that displays common content for all members.

Contents

Settings #

Extension settings #

Once you activate the extension, you will see the Private Content tab on wp-admin > Ultimate Member > Settings > Extensions. On this tab, you can find the following settings:

  • Generate pages - this option generates a private content posts for all existing users.
    When you click on the "Generate pages for existing users" button, a message below appears that it was generated successfully.
  • Generate pages for user roles - this option generates a private content posts for all existing user roles. A role-specific private content is displayed to all users who have a specific role.
  • Private Content Tab Title - change the tab's title in the profile menu. The default Tab title is Private Content.
  • Private Content Tab Icon - change the tab's icon in the profile menu.
  • Private Content Tab Order - choose the order in which content is displayed - "User private content first" or "Role private content first". If the user has multiple roles - the order will be determined by role priority.
  • Predefined content template - Use this setting to create similar private content for all users. This template is used as a pattern in the Private Content editor. The extension does not apply the predefined content template automatically. The administrator has to edit and save the content for every user manually.
    The content added in the setting "Predefined content template" auto-fills the content editor on the Edit Private Content page for each user for whom no individual private content has been created yet. See the Add private content section.

Profile Menu settings #

The extension adds a setting to the page Ultimate Member > Settings > Appearance > Profile Menu. This setting allows you to manage the "Private Content" item in the profile menu:

  • Private Content Tab – Allows enabling/disabling the "Private Content" item in the Profile menu.

Note: The "Private Content" profile tab is visible for the profile owner and administrators. Other members can't see this tab. The tab is hidden if there is no content for the current member.

How to add private content #

Add private content for user #

This content is unique and is displayed to one user. Administrators can add private content to any user. Go to wp-admin > Users > All Users and click the Private Content link displayed under the user name on hover.

The Private Content link will redirect you to the Edit Private Content page where you can add and edit the users' private content. The private content page supports the standard WordPress editor and can be used for media or text. Click the Update button to save changes.

The content editor is filled with the predefined content if there is not private content for this user.

Add private content for user role #

This content is displayed to all users who have a specific role. Administrators can add private content to any user role. Go to wp-admin > Ultimate Member > User Roles and click the Private Content link displayed under the user role name on hover.

The Private Content link will navigate you to the Edit Private Content page where you can add and edit private content. The private content page supports the standard WordPress editor and can be used for media or text. Click the Update button to save changes.

View private content #

Enter the site as the user for whom the private content was created. Go to profile and check that the "Private Content" tab is displayed with the added private content.

Shortcode #

The [um_private_content] shortcode can display private content anywhere you want. You may use the shortcode in the post (page) content and text widgets.