Skip to main content
Agency Program Get 2× more leads and save 50% on hosting. Built for agencies ready to grow. Book a call
Wenprise Pinyin Slug icon

Wenprise Pinyin Slug

v3.1.1
by Amos Lee(一刀) · 5.0 (5 reviews)

自动转换 WordPress 中的中文文章别名、分类项目别名、图片文件名称为汉语拼音或英文翻译。

4K+ active installs Updated Feb 03, 2025 Tested to 6.6.2 Requires PHP 7.4
Try Demo Download
Pre-installed Ready in ~10s No card

About Wenprise Pinyin Slug

This plugin automatically converts Chinese characters in WordPress article slugs, category slugs, and image file names to pinyin or English translation. It is useful for improving the readability of URLs and preventing issues with file names when migrating servers. However, if you are meticulous about manually editing slugs and file names, this plugin may not be necessary for you.

Screenshots

Wenprise Pinyin Slug screenshot
Wenprise Pinyin Slug screenshot
Wenprise Pinyin Slug screenshot

Changelog

3.1.1

  • 解决分类名称为英文时,不调用 sanitize_title 的问题

3.1.0

  • Bugfix, 解决新版古滕堡编辑器保存文章时多次进行拼音转换的问题
  • PHP 版本要求提高到 7.4

3.0.0

  • PHP 版本要求提高到 7.1.0
  • 移除没有使用的依赖库

1.5.4

  • update test up

1.5.3

  • 增加对 wp_insert_post 函数的支持

1.5.2

  • 增加 wenprise_converted_slug Filter,允许第三方代码修改转换后的别名

1.5.1

  • 修复翻译模式下,分隔符无效的问题

1.5.0

  • 修改后台设置,合并翻译设置和拼音转换模式设置

1.4.13

  • Bugfix
  • 中英混合时,转换英文为小写

1.4.10

  • 使用严格模式进行设置测试

1.4.8

  • 修复没有后缀时,导致 sanitize_file_name 函数多一个 . 的问题

1.4.5

  • 更改访问设置的权限为管理员

1.4.4

  • 添加禁用文件名自动转换的选项

1.4.3

  • 设置拼音默认长度为 60 个字符

1.4.1

  • 修复古腾堡编辑器在无草稿直接发布时不能转换别名的 Bug

1.4.0

  • 添加百度翻译 API,如果选择不使用或者翻译失败,则使用拼音转换的方式生成别名,则使用拼音转换的方式生成别名

1.3.1

  • 插件列表添加设置链接

1.3.0

  • 支持古腾堡编辑器

1.2.2

  • 长度限制默认设置为空,为空时,不截取转换后的别名

1.2.1

  • Bugfix

1.2

  • 增加转换别名字符长度限制

1.1.3

  • 添加 PHP 版本检查

1.1.2

  • 解决更新分类时,别名不能转拼音的 Bug

1.1

  • 增加设置项,可以设置是否启用分隔符、分隔符样式以及转换方式,全拼或者第一个字母

1.0

  • 第一个版本,支持文章别名、分类项目别名、和图片文件名的自动转换。

Try other plugins

Yoast SEO icon

Yoast SEO

4.8 · 10M+ installs

Improve your WordPress SEO: Write better content and have a fully optimized WordPress site using the Yoast SEO…