跳到内容

AI Valve

v1.3.0

Per Søderlind · 2026年5月26日 上架

Control, meter, and permission-gate AI usage from plugins that connect through the WordPress 7 AI connector.

正在使用
10 以下
评分
暂无
累计下载
487
最近更新
2026年8月7日
需要 WordPress 7.0+已测试到 7.1.5PHP 8.3+

贡献者

截图

Dashboard with usage summary cards and per-plugin breakdown.
Dashboard with usage summary cards and per-plugin breakdown.
Settings tab with global and per-plugin budgets, context restrictions, and default policy.
Settings tab with global and per-plugin budgets, context restrictions, and default policy.

AI Valve gives site administrators visibility and control over how plugins use the built-in WordPress AI connector.

Features

  • Per-plugin access control — Allow or deny individual plugins from making AI requests.
  • Abilities API guard — Optionally apply the same policy to WordPress Abilities API calls (WordPress 7.1+), keyed by ability namespace.
  • Token budgets — Set daily and monthly token limits per plugin and globally.
  • Context restrictions — Control which execution contexts (admin, frontend, cron, REST, AJAX, CLI) may trigger AI calls.
  • Usage dashboard — See token consumption at a glance with summary cards, progress bars, and per-plugin breakdowns.
  • Request logging — Every AI request is logged with provider, model, capability, tokens, and caller attribution.
  • Budget alerts — Admin notices and optional email when usage approaches or exceeds limits.

Requirements

  • WordPress 7.0 or later
  • PHP 8.3 or later
  • A configured AI provider in Settings Connectors

Developer Hooks

AI Valve exposes filters and actions so you can extend its behaviour without editing the plugin. Full signatures, parameters, and examples are in the developer hooks documentation.

  • aivalve_plugin_policy (filter) — Override the allow/deny decision for any plugin.
  • aivalve_request_denied (action) — React when an AI request is blocked.
  • aivalve_request_completed (action) — React when an AI request succeeds (token counts available).
  • aivalve_ability_invoked (action) — React when an Abilities API call is invoked (WP 7.1+).
  • aivalve_ability_denied (action) — React when an Abilities API call is blocked (WP 7.1+).

Renamed in 1.3.0 from the soderlind_aivalve_ prefix; the old names still fire as deprecated aliases and will be removed in a future major version.

Plums

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

导航

说明

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

© 2026 Plums