alleyinteractive / alleyinteractive/wp-seo

Add a global title separator setting

未关闭
#185 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
PHP
星标
45
派生
13
平均合并
12 天 16 小时
30 天内合并 PR
5

描述

### Description

Issue #161's MVP requirements call for the ability to customize the separator used in generated title tags. Today there is no dedicated separator setting anywhere in the codebase — the `$sep` parameter on `wp_title()` (`php/class-wp-seo.php`) is a vestigial doc-comment left over from WordPress core's `wp_title()` and is never actually used or output. Admins can only get a separator by manually typing a character into each per-page-type title format string (e.g. `#title# | #site_name#`), meaning changing the separator today requires hand-editing every `*_title` format field across every post type and archive section individually.

### Use Case

Site admins want to set the separator character (e.g. `|`, `-`, `•`) once, globally, and have it apply consistently across all generated title tags, the way comparable SEO plugins (Yoast, RankMath) handle it — rather than having to update dozens of individual title format fields by hand if they want to change it later.

### Proposed Solution

Add a `title_separator` setting (e.g. a dropdown of common separator characters, or a free-text field) plus a corresponding `#separator#` formatting tag, so it can be referenced from any title format string and changed globally in one place.

### Related

- #161 (parent MVP tracking issue)

贡献指南

打开贡献指南

调研方向

Start in php/class-wp-seo.php and review issue #161, then trace how title format fields are registered and how formatting tags are processed. Add the global title_separator setting and make the #separator# tag available in generated title formats; done means admins can change the separator once and see it applied consistently.

由索引模型根据 Issue 内容生成。

评估

技术栈
php
领域
backend
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
55/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。