跳到内容

Rewrite slug before publishing a post

v1.0

Dario BF · 2016年6月9日 上架

Is a known (SEO) issue that if You save a draft post without title, the post_name or slug is immediately saved with the post id.

正在使用
10+
评分
3.7 / 5
累计下载
1,786
最近更新
2016年6月9日
3 条评价需要 WordPress 4.1+已测试到 4.5.33

贡献者

Is a known (SEO) issue that if You save a draft post without title, the post_name or slug is immediately saved with the post id.

Later, when You finish your post and put some title, the slug doesn’t change; neither also when your slug preference is %postname%.

So, what if we include the following function to rewrite the slug before publishing the post?

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums