跳到内容

Private Suite

v2.1

Stephanie Leary · 2009年10月14日 上架

Allows you to choose who can read private content and offers better control of privacy features.

正在使用
60+
评分
5.0 / 5
累计下载
1.3 万
最近更新
2016年4月23日
1 条评价需要 WordPress 3.3+已测试到 4.5.33

截图

The options page
The options page
  • Optionally adds private pages to wp_list_pages(), wp_page_menu(), and the Pages widget
  • Provides a separate wp_list_private_pages() tag (a clone of wp_list_pages() that accepts all the same arguments)
  • Specifies private categories, in which all posts will automatically be set to private
  • Lets you change the “Private:” prefix on private post/page titles
  • Lets you change the “Protected:” prefix on password-protected post/page titles
  • Lets you choose which user roles can read private pages and posts

Now on GitHub.

Translations

Notes

Reading Settings

You must have at least one public page. Otherwise, as of 3.1, the front page settings (where you can choose a static page as your home page) will not appear on the settings page at all. As long as you have one public page, all the private pages will appear as options in the dropdown menu.

Page Lists and Widgets

Adding private pages to wp_list_pages(), wp_page_menu(), and the Pages widget does not always work as it should. The private pages will be out of order, and they might appear as children of the wrong parent page. If this occurs, try using the wp_list_private_pages() template tag instead. It’s a clone of wp_list_pages() and should accept all the same arguments. This plugin includes an extra Pages widget that includes private pages.

Private Categories

When you mark a category as private, all the posts in that category will have their visibility set to private when they are published, even if you don’t change the visibility setting on the edit screen. Only published posts are affected; your draft, pending, and scheduled posts will work as usual, except that scheduled posts will be set to private when they become active.

Acknowledgments

Huge thanks to mtekk for providing the patch that makes the page list features possible. The alternative method of listing pages was adapted from Branko Ajzele.

Translations

If you would like to send me a translation, please write to me through my contact page. Let me know which plugin you’ve translated and how you would like to be credited. I will write you back so you can attach the files in your reply.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums