Added SEO metadata generation with AI integration#1275
Conversation
|
Plugin build for 15815c2 is ready 🛎️!
Note You can preview the changes in the Playground |
🌍 i18n String Review Report📊 Summary
➕ Added Strings (11) - Click to expand
|
There was a problem hiding this comment.
Pull request overview
This PR adds lite-side scaffolding and UI for a new SEO metadata generation import action (fz_seo_metadata / item_seo). It lets import jobs generate SEO fields (SEO title, meta description, focus keyword) for imported posts through OpenAI/OpenRouter or Feedzy's managed AI, with the actual metadata consumption and SEO-plugin detection provided by the Pro plugin. The action popup UI is extended with a new SEO panel, and the AI provider/model controls are refactored into shared components.
Changes:
- Adds a new
Generate SEO Metadataaction (gated behind Pro + Business/Agency plan + active SEO plugin) with a settings panel, provider/model selection, SEO-field multi-select, and prompt. - Extracts
ProviderSelect/ModelSelectfromRewriteActionItem.jsinto shared components and adds thegenerate_seo_metadata()runtime that stores results onFeedzy_Rss_Feeds_Actions::$pending_seo_metadata. - Adds the
import_seo_datametabox field, magic-tag registration (feedzy_magic_tags_seo), mix-mode Tagify handling, theisSeoPluginActivelocalized flag, and Chosen CSS scoping to.fz-action-event.
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
js/ActionPopup/SortableItem.js |
New fz_seo_metadata action panel + Chosen-based SEO fields select |
js/ActionPopup/RewriteActionItem.js |
Removes inline ProviderSelect/ModelSelect, imports shared versions |
js/ActionPopup/ProviderSelect.js |
New shared AI provider select (has quote/indent style inconsistency) |
js/ActionPopup/ModelSelect.js |
New shared model select (unused ToggleControl import) |
js/ActionPopup/index.js |
Adds SEO action entry in the action list, gated by plan/SEO-plugin |
includes/views/js/import-metabox-edit.js |
Excludes SEO field from normal Tagify; adds mix-mode Tagify for it |
includes/views/import-metabox-edit.php |
Adds the import_seo_data field with magic-tag dropdown |
includes/feedzy-rss-feeds.php |
Registers feedzy_magic_tags_seo filter |
includes/admin/feedzy-rss-feeds-import.php |
Loads/runs the SEO action, adds magic_tags_seo, extends magic-tag rendering |
includes/admin/feedzy-rss-feeds-admin.php |
Localizes isSeoPluginActive flag |
includes/admin/feedzy-rss-feeds-actions.php |
Adds generate_seo_metadata() and pending_seo_metadata property |
css/settings.css |
Extends Chosen styling selectors to .fz-action-event |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
Implemented SEO metadata generation for imported posts using OpenAI or Feedzy AI.
Screenshots
Check before Pull Request is ready:
Closes https://github.com/Codeinwp/feedzy-rss-feeds-pro/issues/975