[Feature]: Issue 240 | SEO Descriptions#318
[Feature]: Issue 240 | SEO Descriptions#318TylerB24890 wants to merge 20 commits intoWordPress:developfrom
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #318 +/- ##
=============================================
+ Coverage 57.85% 59.21% +1.36%
- Complexity 615 667 +52
=============================================
Files 46 50 +4
Lines 3165 3408 +243
=============================================
+ Hits 1831 2018 +187
- Misses 1334 1390 +56
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
I've updated the experiment title to "Meta Description Generation" -- let me know if we should roll this up into the Excerpt UI instead.
Done.
Done.
This is because metadata isn't saved with Drafted posts by default. I had to define the |
Still seeing this not sticking around in the Meta Description sidebar panel after clicking save (macOS 15.7.4, Firefox 148.0.2, WordPress 7.0-beta6-62088): generate-meta-description.mp4 |



What?
Closes #240
This PR introduces a new Experiment "Meta Descriptions" which provides AI generated meta description support.
Why?
Meta descriptions are an important aspect of a pages SEO, yet they are often overlooked or lacking in quality. See #240 for more detail.
How?
This Experiment introduces a new panel to the block editor
PluginDocumentSettingPanelfor managing the SEO meta description for the current post. The initial view provides a simple button to "Generate Meta Description". On click of the button, a modal window opens which shows the suggested meta descriptions returned from the AI and aTextAreaControlinput allowing editors to manipulate the suggested descriptions prior to saving them to the post.On select of a suggestion, the
TextareaControlcomponent is populated with the selected suggestion at which point the editor can update the text as needed.From there, editors have a few options;
TextareaControlcomponent to the appropriate meta key_meta_descriptionkey is stored.TextareaControlto the users clipboard.Various filters are available for customizing the experiment;
ai_meta_description_prompt- Attach additional (or modify) context sent to the AI for the meta descriptionai_meta_description_candidate_count- The number of suggestions returned. Default is3.ai_meta_description_result_temperature- The temperature threshold for the model. Default is0.7ai_meta_description_seo_plugin- The supported SEO plugins in['file' => 'path', 'meta_key' => 'key' ]format.ai_meta_description_meta_key- Override the meta key the description is saved to. This will take priority over any plugin configurations.Use of AI Tools
Testing Instructions
_meta_descriptionkey.Screenshots or screencast
Initial State:

Generated Descriptions:

Selected Description:

Saved Description:
