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 extension " Ultimate Member - Profile tabs" to create a profile tab that displays common content for all members.

Contents

Settings #

Extension's settings #

Once you activate the Private content extension, you will see the tab "Private content" on wp-admin > Ultimate Member > Settings > Extensions. On this page, 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 image in the Add private content section.

Image - Settings on wp-admin > Ultimate Member > Settings > Extensions > Private Content.

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 profile tab "Private Content" 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. The content is unique for each 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.

Image - The Users table.

The Private Content link will redirect you to the Edit Private Content page where you can add and edit 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.

Image - The Edit Private Content page.

Image - The Edit Private Content page filled with the predefined content.

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.

Image - The User Roles table.

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.

Image - The Edit Private Content page.

View private content #

Go to the site and log in as the user for whom the private content was created. Check that the private content tab is displayed with the title and added private content.

Shortcode #

[um_private_content]

This shortcode can display private content anywhere you want.

Image - How to add shortcode to the page content.