Password Protect Pages
A simple plugin that allows you to restrict access to certain pages on your website to only logged in users quickly and easily. This plugin can be useful to those who do not need overly complicated membership systems, and to those who want to password protect a group of pages but don’t want to password protect each page individually, forcing the users to log into each one.
It is simple to use. First select whether you want to password protect all pages by default, and want to choose which pages are public. Or choose to allow all pages to be public by default, and choose which pages are password protected.
When non-logged in users try to access a password protected page they will be redirected to the WordPress login screen. Once logged in, they will be redirected back to the requested page and will not be asked to log in again on subsequent pages.
password-protect-pages.php to the
Activate the plugin through the ‘Plugins’ menu in WordPress
Navigate to Settings –> Password Protect Pages to configure the plugin options
How do I find the ID of a page?
You can read an explanation of how to do that here: https://jessnunez.dev/how-to-find-page-id/