Title: Toggle Post Type Visibility
Author: Nick Halsey
Published: <strong>2025 年 9 月 14 日</strong>
Last modified: 2025 年 9 月 14 日

---

搜索插件

![](https://ps.w.org/toggle-post-type-visibility/assets/icon.svg?rev=3361142)

# Toggle Post Type Visibility

 作者：[Nick Halsey](https://profiles.wordpress.org/celloexpressions/)

[下载](https://downloads.wordpress.org/plugin/toggle-post-type-visibility.zip)

 * [详情](https://cn.wordpress.org/plugins/toggle-post-type-visibility/#description)
 * [评价](https://cn.wordpress.org/plugins/toggle-post-type-visibility/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/toggle-post-type-visibility/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/toggle-post-type-visibility/#developers)

 [支持](https://wordpress.org/support/plugin/toggle-post-type-visibility/)

## 描述

Toggle the visibility of any custom post type between public and restricted to logged-
in users. This simple plugin can be paired with account management strategies to
create membership-only content restrictions.

## 安装

 1. Take the easy route and install through the WordPress plugin installer, or,
 2. Download the .zip file and upload the unzipped folder to the `/wp-content/plugins/`
    directory
 3. Activate the plugin through the ‘Plugins’ menu in WordPress
 4. Go to the Toggle Post Type Visibility page under Settings to set the visibility
    of each post type.

## 常见问题

### Where are the options?

See the sub-page under the settings menu. Options will only show up for custom post
types registered with `public => true`.

### Inconsistent behavior for logged out users?

Logged-out users may see inconsistent behavior when attempting to access content
that is hidden. They will likely see the front page, or the `post` type archive.
They may see a 404 error. For best results, avoid including menus or other links
to hidden content from public pages.

### Access management

This plugin limits access to logged-in users. It does not provide any special handling
of user registration management. Anyone at the `subscriber` level or greater can
view all content filtered by this plugin. There is a warning on the settings page
when sites allow anyone to register, which will allow anyone to view content restricted
by this plugin. There are no plugin options to change the visibility restriction;
the only level of access restriction is for logged-in status.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Toggle Post Type Visibility」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Nick Halsey ](https://profiles.wordpress.org/celloexpressions/)

[帮助将「Toggle Post Type Visibility」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/toggle-post-type-visibility)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/toggle-post-type-visibility/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/toggle-post-type-visibility/)，或
通过[RSS](https://plugins.trac.wordpress.org/log/toggle-post-type-visibility/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/toggle-post-type-visibility/)。

## 更新日志

#### 1.0

 * First publicly available version of the plugin.

## 额外信息

 *  版本 **1.0**
 *  最后更新：**9 月前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.8 或更高版本 **
 *  已测试的最高版本为 **6.8.5**
 *  PHP 版本 ** 7.2 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/toggle-post-type-visibility/)
 * 标签
 * [custom post types](https://cn.wordpress.org/plugins/tags/custom-post-types/)
   [membership](https://cn.wordpress.org/plugins/tags/membership/)[post types](https://cn.wordpress.org/plugins/tags/post-types/)
 *  [高级视图](https://cn.wordpress.org/plugins/toggle-post-type-visibility/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/toggle-post-type-visibility/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/toggle-post-type-visibility/reviews/)

## 贡献者

 *   [ Nick Halsey ](https://profiles.wordpress.org/celloexpressions/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/toggle-post-type-visibility/)