Slug Automator

外掛說明

Slug Automator automatically generates slugs from WordPress post titles using the AI Client introduced in WordPress 7.0.

Writing post titles in any other non-English language? Slug Automator uses AI to translate them into clean, URL-friendly English slugs — no manual input required. Automatic generation on publish runs only when the slug field is empty, so any slug you’ve set manually is never overwritten. You can also generate or regenerate a slug on demand with the “Generate Slug” button in the block editor.

Because it relies on the WordPress AI Client, it works with any AI provider configured on your site (Anthropic, Google, OpenAI, and more).

GitHub: https://github.com/torounit/slug-automator

Features

  • Automatically generates slugs from post titles via AI
  • Provider-agnostic — uses whichever AI provider is configured in WordPress
  • Works directly in the block editor

安裝方式

  1. Upload the plugin files to the /wp-content/plugins/slug-automator directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Make sure an AI provider is configured under Settings > Connectors in WordPress.

常見問題集

Which AI service does this plugin use?

This plugin uses the WordPress AI Client (requires WordPress 7.0 or later). It works with any AI provider configured by the site administrator under Settings > Connectors.

Does it overwrite slugs I have already set?

Not automatically. Auto-generation on publish runs only when the slug field is empty. If you want to replace an existing slug, you can do so manually with the “Generate Slug” button in the block editor.

使用者評論

2026 年 6 月 18 日
パーマリンクに日本語タイトルがそのまま入ってしまうのをやめられるプラグイン。サイトによってはスラッグのかわりに数字を使っているところも見かけますが、SEO的にも意味のあるURLであるほうがいいはずなので、とても便利だと思いました。
2026 年 6 月 18 日
Why hasn’t there been a plugin like this until now? (Well, it’s because AI connectors didn’t exist yet…) This is exactly what everyone, especially non-English speaking users, has been looking for. Simply by enabling this, messy slugs become beautiful. If you don’t like the result, you can try again with the regenerate button. You no longer need to use ID-based permalinks just to have clean slugs. Non-English speakers don’t have to struggle with manual translations anymore either. It is an incredibly simple and powerful plugin. I highly recommend everyone give it a try. You will probably want to install it on every single one of your sites.
閱讀全部 2 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Slug Automator〉的開發相關工作。

參與者

〈Slug Automator〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Slug Automator〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

0.5.0

  • Add wpai_has_ai_credentials filter to allow third-party plugins to declare AI connector availability for connectors that don’t rely on API key settings.

0.4.1

  • Optimize model preferences for slug generation to improve output quality.
  • Update README.

0.4.0

  • Fix duplicate slug on regeneration by passing the current slug as an exclusion hint to the AI.
  • Improve AI prompt to require semantic English translation and prohibit transliteration.
  • Refactor context schema to {type, id} and tighten permission checks in the slug ability.

0.3.1

  • Add “Generate Slug” button to the block editor using the WordPress Abilities API.

0.2.0

  • Add support for Gemini 3.1 Flash Lite model.

0.1.8

  • Fix release zip to include build assets.

0.1.5

  • WordPress Plugin Directory release.

0.1.0

  • Initial release.