[WordPress] 外掛分享: Jigar Patel Post Content Summary With AI

首頁外掛目錄 › Jigar Patel Post Content Summary With AI
全新外掛
安裝啟用
尚無評分
11 天前
最後更新
問題解決
WordPress 5.8+ PHP 7.4+ v1.0.0 上架:2026-07-20

內容簡介

JP Post Content Summary With AI 外掛為文章編輯器新增「使用 AI 生成摘要」按鈕,讓使用者一鍵將文章內容發送至選定的 AI 提供者(Anthropic Claude 或 OpenAI),並返回一段最多 200 字元的摘要,方便編輯與發布。

【主要功能】
• 一鍵從文章編輯器生成 AI 摘要
• 可編輯的摘要欄位,並有即時字數計數器
• 支援 Anthropic (Claude) 或 OpenAI,依使用者選擇
• 摘要儲存在 post_meta 中(鍵值:_ai_short_summary)
• 摘要自動顯示在文章內容上方的樣式框中
• 伺服器端強制執行 200 字元限制

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Jigar Patel Post Content Summary With AI」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

JP Post Content Summary With AI adds a “Generate Summary with AI” button to the post editor. One click sends the article content to your chosen AI provider (Anthropic Claude or OpenAI), which returns a short summary (200 characters max). The summary lands in an editable text field so editors can tweak it before publishing. Once the post is saved, the summary is stored in post_meta and automatically prepended to the post content on the front end, inside a rounded, bordered box.
Features

One-click AI summary generation from the post editor
Editable summary field with a live 200-character counter
Works with Anthropic (Claude) or OpenAI — your choice, your API key
Summary is stored in post_meta (key: _ai_short_summary)
Automatically displayed above the post content in a styled box — no theme edits needed
Server-side enforcement of the 200-character limit, even if the field is edited manually
Nonce-protected AJAX request and standard WordPress capability checks

How It Works (Step by Step)

Configure your API key
Go to Settings → JP PostSummary With AI in wp-admin. Choose a provider (Anthropic or OpenAI), paste your API key, and optionally specify a model (defaults: claude-sonnet-4-6 for Anthropic, gpt-4o-mini for OpenAI). Save changes.

Open a post
Edit any post (new or existing). Below the main content editor you’ll see a “Short Summary (AI)” box.

Generate the summary
Click “Generate Summary With AI.” The plugin sends the post’s title and content (up to ~6000 characters) to the configured AI provider via a secure server-side AJAX request (admin-ajax.php, nonce-verified). The AI returns a short summary, which is inserted into the text field below the button.

Review and edit
The summary is fully editable. A live character counter (e.g. “142 / 200”) shows how much room is left, and turns red if you exceed the limit. You can also skip AI generation entirely and type your own summary.

Save/Publish the post
When you click Update or Publish, WordPress’s standard save_post hook fires. The plugin verifies the nonce and your editing capability, sanitizes the text, truncates it to 200 characters at a clean word boundary if needed, and saves it to post_meta under the key _ai_short_summary.

Automatic front-end display
On the single post view, a the_content filter checks for a saved summary. If one exists, it’s wrapped in a

— rounded corners, subtle border and shadow — and prepended before the rest of the article content. No template edits are required; this happens automatically via the filter.

External services
This plugin uses the WordPress AI Client, the AI infrastructure built into WordPress core (7.0+), to generate short article summaries. It does not connect to any external service directly or on its own — it works only through whichever AI provider(s) the site administrator has configured under Settings → AI Credentials. Depending on that configuration, the plugin’s “Generate Summary by AI” button will cause the post title and content to be sent to one of the following third-party services:
Anthropic (Claude models)
* What it is / what it’s used for: a generative AI service used to produce the short article summary text.
* What data is sent, and when: the post title and up to approximately 6,000 characters of the post content, sent only when an editor clicks the “Generate Summary by AI” button (never automatically or in the background).
* Terms of Service: https://www.anthropic.com/legal/consumer-terms
* Privacy Policy: https://www.anthropic.com/legal/privacy
OpenAI (GPT models)
* What it is / what it’s used for: a generative AI service used to produce the short article summary text.
* What data is sent, and when: the post title and up to approximately 6,000 characters of the post content, sent only when an editor clicks the “Generate Summary by AI” button (never automatically or in the background).
* Terms of Service: https://openai.com/policies/row-terms-of-use/
* Privacy Policy: https://openai.com/policies/row-privacy-policy/
Data & Privacy Notes

Post title and content (up to ~6000 characters) are sent to the configured third-party AI provider (Anthropic or OpenAI) when the “Generate Summary With AI” button is clicked.
No data is sent automatically — generation only happens on explicit button click.
Refer to your chosen provider’s privacy policy and terms of service for how they handle submitted data.

Known Limitations

Any user with edit_posts capability can trigger a billed API call by clicking the button. If you have many editors, consider adding rate-limiting.
Summary generation is synchronous — the request happens while the editor waits, so response time depends on the AI provider’s latency (typically a few seconds).

延伸相關外掛

文章
Filter
Apply Filters
Mastodon