Linux 软件免费装

Jigar Patel Post Content Summary With AI

开发者 indiajigar
Jigar Patel
更新时间 2026年7月21日 13:30
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

excerpt ai summary openai anthropic

下载

1.0.0

详情介绍:

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

安装:

  1. Upload the plugin zip via Plugins → Add New → Upload Plugin, or extract it into /wp-content/plugins/jigar-patel-post-content-summary-with-ai/.
  2. Activate the plugin through the Plugins menu.
  3. Go to Settings → JP PostSummary With AI and enter your API key and provider.
  4. Edit any post and use the "Generate Summary With AI" button in the post editor.

常见问题:

Which AI providers are supported?

Anthropic (Claude) and OpenAI out of the box. The API-calling logic is isolated in two functions (jppsai_call_anthropic() and jppsai_call_openai()), so adding another provider just means adding a similar function and a case in jppsai_call_ai_api().

Where is the summary stored?

In the wp_postmeta table, under the meta key _ai_short_summary, tied to the post ID.

Does this modify my theme files?

No. The summary box is injected via the the_content filter and its styles via wp_head, so it works with any theme without editing template files.

What happens if the AI-generated summary is longer than 200 characters?

It's automatically truncated at the nearest word boundary and an ellipsis is appended, both when displayed in the editor and again server-side when saved, so the stored value never exceeds the limit.

Can editors write their own summary instead of using AI?

Yes. The text field is always editable — the AI button is a convenience, not a requirement.

Does this work for custom post types?

By default it's enabled for the post post type. Other post types can be added via the jppsai_post_types filter, e.g.: add_filter( 'jppsai_post_types', function( $types ) { $types[] = 'news'; return $types; } );

Is my API key secure?

It's stored in the wp_options table (via the Settings API) and is never sent to the browser. Make sure your site runs over HTTPS and that only trusted admins have access to Settings → JP PostSummary With AI.

更新日志:

1.0.0