Title: PillarShield
Author: pteglia
Published: <strong>2026 年 3 月 28 日</strong>
Last modified: 2026 年 3 月 28 日

---

搜索插件

![](https://s.w.org/plugins/geopattern-icon/pillarshield.svg)

# PillarShield

 作者：[pteglia](https://profiles.wordpress.org/pteglia/)

[下载](https://downloads.wordpress.org/plugin/pillarshield.0.1.0.zip)

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

 [支持](https://wordpress.org/support/plugin/pillarshield/)

## 描述

PillarShield integrates WordPress with the PillarShield SaaS governance API. It 
runs checks at the publish boundary, blocks non‑compliant content, allows optional
overrides, and keeps a governance record per post for reporting. You must obtain
a PillarShield API key from https://pillarshield.co for the plugin to function.

Key features:

 * Gate governance checks on publish/private statuses (configurable per post type).
 * Optional manual checks that never block saves.
 * Override workflow for privileged users.
 * Governance reporting under Tools  PillarShield (blocked-at-gate items only).
 * Safe storage of outcomes without raw content.

### Configuration

Settings  PillarShield:

 * **API Endpoint**: The PillarShield governance endpoint.
 * **API Key**: Your tenant API key (`psk_...`).
    - Get a key at https://pillarshield.co. The plugin does not perform governance
      checks without a valid API key.
    - You can also define `PILLARSHIELD_API_KEY` in `wp-config.php` to override 
      the stored option:
       define(‘PILLARSHIELD_API_KEY’, ‘psk_…’);
 * **Enable Governance**: Turn checks on/off.
 * **Allow Save Without API**: Allow publishing if the API is unavailable.
 * **Enabled Post Types**: Which post types are governed.
 * **Fields per Post Type**: Comma‑separated fields to scan. Supports `meta:KEY`.
 * **Gate Configuration**:
    - **Gated statuses** (default: publish + private)
    - **Fallback status** (default: draft)

Use the **Test Connection** button to validate API access.

### Editor UX

On governed post types, a PillarShield meta box appears with:

 * **Check PillarShield governance on this save** (manual check)
 * **Override PillarShield governance (save anyway)**

These checkboxes do not persist — they only apply to the current save.

### Permissions (Roles/Capabilities)

PillarShield adds these capabilities:

 * `pillarshield_manage_settings` — manage settings page
 * `pillarshield_view_reports` — view reports
 * `pillarshield_manual_check` — run manual check
 * `pillarshield_override_governance` — override violations

On activation, these are granted to **Administrators** only.

**Override visibility requirement:**
 The Override checkbox only appears for users
who have the `pillarshield_override_governance` capability. Editors will not see
it unless you explicitly grant that capability via a role editor plugin or custom
code.

### Reporting

Tools  PillarShield:

 * Overview of content currently blocked at the gate.
 * Details page per post with block reason and metadata.

### External services

This plugin connects to the PillarShield governance API to evaluate post content
for compliance before publishing.

**Service:** PillarShield SaaS governance API, operated by PillarShield.
 **Endpoint:**
https://api.pillarshield.co/pillarshield-governance/governance

**What is sent and when:**
 When a user saves a post to a gated status (by default:
publish or private) on a governed post type, or manually triggers a governance check,
the plugin sends a POST request containing:

 * The post’s configured content fields (by default: title, body, and excerpt)
 * Post metadata: post type, post ID, post UUID, post URL, and target publish status
 * WordPress user context: user ID and roles (no email or username is transmitted)
 * The tenant API key

No data is sent during autosaves, revisions, or saves to non-gated statuses. The
plugin requires a valid API key obtained from https://pillarshield.co to function.

 * [Terms of service](https://pillarshield.co/terms)
 * [Privacy policy](https://pillarshield.co/privacy-policy)

### Support

Support and documentation: https://pillarshield.co.

## 安装

 1. Upload the `pillarshield` folder to `wp-content/plugins/` or install it as a ZIP.
 2. Activate **PillarShield** in Plugins  Installed Plugins.
 3. Go to Settings  PillarShield to configure API settings.

## 常见问题

### Why didn’t I see a notice after publishing?

The block editor uses REST saves; notices are injected into the editor UI after 
save. Quick Edit notices appear on the list table after inline‑save completes. Classic
admin notices show on full page loads.

### Does this store my content?

No. Only minimal blocked-at-gate metadata and reasons are stored locally. Content
is sent to the PillarShield SaaS API for evaluation.

### What post statuses are gated?

By default `publish` and `private`, configurable per post type.

### Where do I get an API key?

Get a PillarShield API key at https://pillarshield.co. The plugin requires a valid
key to run governance checks.

### Where can I get support?

Visit https://pillarshield.co.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ pteglia ](https://profiles.wordpress.org/pteglia/)

[帮助将「PillarShield」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/pillarshield)

### 对开发感兴趣吗?

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

## 更新日志

#### 0.1.0

 * Initial beta.

## 额外信息

 *  版本 **0.1.0**
 *  最后更新：**2 月前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/pillarshield/)
 * 标签
 * [compliance](https://cn.wordpress.org/plugins/tags/compliance/)[governance](https://cn.wordpress.org/plugins/tags/governance/)
   [moderation](https://cn.wordpress.org/plugins/tags/moderation/)[publishing](https://cn.wordpress.org/plugins/tags/publishing/)
 *  [高级视图](https://cn.wordpress.org/plugins/pillarshield/advanced/)

## 评级

尚未提交反馈。

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

[查看全部评论](https://wordpress.org/support/plugin/pillarshield/reviews/)

## 贡献者

 *   [ pteglia ](https://profiles.wordpress.org/pteglia/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/pillarshield/)