feat: 新增AI SEO助手插件,支持自动生成SEO内容和导航主题适配

添加完整的AI SEO助手WordPress插件,主要功能包括:
- 集成Dify API自动生成SEO优化的标题、描述和关键词
- 支持导航主题的自定义字段适配
- 提供管理界面设置API和文章类型支持
- 包含前端SEO标签自动应用功能
- 添加详细的测试和调试功能
This commit is contained in:
2025-08-13 18:52:35 +08:00
commit 1ae6823bd5
9 changed files with 2536 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
{
"ai_seo_api_key": "",
"ai_seo_api_url": "",
"ai_seo_auto_generate": false,
"ai_seo_enable_logging": true,
"ai_seo_cache_duration": 3600,
"ai_seo_max_retries": 3,
"ai_seo_timeout": 30,
"ai_seo_supported_post_types": ["post", "page", "sites", "shop", "products"],
"ai_seo_title_template": "{title}",
"ai_seo_description_template": "{description}",
"ai_seo_keywords_template": "{keywords}",
"ai_seo_enable_frontend": true,
"ai_seo_enable_admin_notices": true,
"ai_seo_prompt_templates": {
"title": "请为以下内容生成一个SEO优化的标题长度控制在50-60个字符\n\n{content}",
"description": "请为以下内容生成一个SEO优化的描述长度控制在150-160个字符\n\n{content}",
"keywords": "请为以下内容提取3-5个相关的SEO关键词用逗号分隔\n\n{content}",
"combined": "请根据以下文章标题和内容生成SEO优化的标题(Title)、描述(Description)和关键词(Keywords)\n\n标题{title}\n\n内容{content}\n\n请以JSON格式返回包含title、description、keywords字段。"
},
"ai_seo_quality_thresholds": {
"title_min_length": 30,
"title_max_length": 60,
"description_min_length": 120,
"description_max_length": 160,
"keywords_min_count": 3,
"keywords_max_count": 5
},
"ai_seo_ui_settings": {
"show_preview": true,
"show_character_count": true,
"show_seo_score": true,
"show_tips": true,
"enable_shortcuts": true,
"auto_save": true
}
}