How to Password Protect Posts, Pages and WooCommerce Products

If you want to password protect individual posts, pages orWooCommerce ProductsWordPress actually includes a built-in feature to help you get through itsvisibilitySettings are set.

图片[1]-如何用密码保护帖子、页面和 WooCommerce 产品-光子波动网 | WordPress教程、Elementor教程与故障修复

will be found in the WordPress editorvisibilitysetting, so it can be used for each type of content we mentioned above, as well as any other custom post types that may be used on the site.

Steps:

  • Open the WordPress editor and find the content you want to add password protection to.
  • In the right sidebar find theVisibility Options.
  • Click on it.
  • option"Password protection."and enter the password you want to use to unlock the post.

Here's what it looks like in the new WordPress block editor:

图片[2]-如何用密码保护帖子、页面和 WooCommerce 产品-光子波动网 | WordPress教程、Elementor教程与故障修复

Here's what it looks like in the old Classic WordPress editor:

图片[3]-如何用密码保护帖子、页面和 WooCommerce 产品-光子波动网 | WordPress教程、Elementor教程与故障修复

After posting or updating content, visitors will be prompted for a password before they can view the post. In addition, WordPress will add the word "Protected" to the post title:

图片[4]-如何用密码保护帖子、页面和 WooCommerce 产品-光子波动网 | WordPress教程、Elementor教程与故障修复

This method is rather ingenious and actually allows people to unlock multiple posts by entering their password at once. To set this up, simply reuse the same password across multiple posts. Pretty simple, right?

Once the visitor enters the password once, theIt will automatically unlock all content that uses the same password. However, if another portion of the content uses a different password, then the visitor is still required to enter that unique password.

Finally, just so you guys can see how this type of password protection works for different content, here's how it works in the WooCommerce product. As you can seevisibilityThe controls are displayed in the same position:

如何密码保护 WooCommerce 产品

Contact Us
Can't read the tutorial? Contact us for a free answer! Free help for personal, small business sites!
客服微信
Customer Service
Tel: 020-2206-9892
QQ咨询:1025174874
(iii) E-mail: [email protected]
Working hours: Monday to Friday, 9:30-18:30, holidays off
© Reprint statement
This article was written by Harry
THE END
If you like it, support it.
kudos0 share (joys, benefits, privileges etc) with others
commentaries sofa-buying

Please log in to post a comment

    No comments