添加完整的AI SEO助手WordPress插件,主要功能包括: - 集成Dify API自动生成SEO优化的标题、描述和关键词 - 支持导航主题的自定义字段适配 - 提供管理界面设置API和文章类型支持 - 包含前端SEO标签自动应用功能 - 添加详细的测试和调试功能
37 lines
1.5 KiB
JSON
37 lines
1.5 KiB
JSON
{
|
||
"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
|
||
}
|
||
} |