One my goals as webmaster is to give my club's board members the up-to-date data they need from our Participants Database without using the WordPress interface. When an authorized someone needs data that's in our database (or could be), I create a page using pdb_list to get the data and, to safeguard member privacy, password protect the page using the page visibility attribute.
Page Visibility
WordPress provides built-in visibility options for pages to
control who can access them. These options are:
- Public: The
default setting, making the page visible to everyone
- Private: Makes
the page visible only to logged-in users with specific WordPress roles
(Administrators and Editors)
- Password
Protected: Requires a password to view the page content
How to Password Protect a WordPress Page
- Find and open the page for editing in WordPress
- Locate the "Publish" box in the right sidebar of the classic editor
- Click on the current visibility status (usually "Public")
- A dropdown menu will appear with the visibility options
- Select "Password Protected"
- Enter the desired password
- Click "OK"
- Click "Update" or "Publish" to save the changes
Note 1: You can use the above steps at any time to change the password.
Note 2: You can set up the same password of more than one page if that suits your needs.
Note 3: For password-protected pages, visitors will be
prompted to enter their page-specific password before they can view the content. No password, no access.