Title: Unique Slug Checker
Author: Mehrad
Published: <strong>2025 年 5 月 4 日</strong>
Last modified: 2026 年 6 月 29 日

---

搜索插件

![](https://ps.w.org/unique-slug-checker/assets/icon-256x256.png?rev=3287129)

# Unique Slug Checker

 作者：[Mehrad](https://profiles.wordpress.org/moma2work/)

[下载](https://downloads.wordpress.org/plugin/unique-slug-checker.1.4.0.zip)

 * [详情](https://cn.wordpress.org/plugins/unique-slug-checker/#description)
 * [评价](https://cn.wordpress.org/plugins/unique-slug-checker/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/unique-slug-checker/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/unique-slug-checker/#developers)

 [支持](https://wordpress.org/support/plugin/unique-slug-checker/)

## 描述

**Unique Slug Checker** helps you maintain clean, conflict-free URLs by detecting
duplicate slugs across your entire WordPress site in real-time.

🚀 **Core Features:**

✔️ **Real-time checking** in both Classic and Gutenberg editors
 ✔️ **Full SEO plugin
support** (Yoast SEO, Rank Math, All in One SEO) ✔️ **Cross-post type detection**–
finds duplicates in any content type ✔️ **Visual status indicators** with clear 
warnings ✔️ **Post list column** showing slug availability ✔️ **Multilingual ready**
with translation support

🔧 **New in 1.4.0**
 – **WordPress 7.0 compatibility** – fully tested and optimized–**
Performance improvements** – 30-40% faster with caching – **Fixed deprecated functions**–
removed `get_page_by_path` – **PHP 8.2/8.3 compatibility** – improved code quality–**
Better security** – enhanced nonce and data validation – **Full CPT support** – 
works with all custom post types – **Memory leak fix** – proper cleanup in Gutenberg

Perfect for:
 – Large content sites – Multilingual websites – Editorial teams – 
SEO-conscious publishers

### Credits

Developed by [Mohsen Mahdavi](https://cn.wordpress.org/plugins/unique-slug-checker/moma2work@gmail.com?output_format=md)

### License

This plugin is licensed under the **GPLv2 or later**.

### Author

**Mohsen Mahdavi** – moma2work@gmail.com

## 安装

 1. Upload the plugin files to `/wp-content/plugins/unique-slug-checker`
     OR install
    directly via WordPress admin (Plugins > Add New)
 2. Activate the plugin
 3. Start editing posts – duplicate slugs will be detected automatically

## 常见问题

### Does this work with custom post types?

Yes. It checks all post types when detecting duplicate slugs, including custom post
types.

### Does it work with blocks/Gutenberg?

Yes, fully supports the block editor and shows notices in real time.

### Does it support modals and dynamically loaded fields?

Yes. The plugin uses mutation observers and timers to detect and attach logic even
inside SEO plugin modals like Rank Math.

### Does it affect site performance?

No. The plugin uses optimized queries with caching to minimize database load.

### Can I suggest a feature?

Of course! Open an issue on GitHub: https://github.com/m2mahdavi/unique-slug-checker

## 评价

此插件暂无评价。

## 贡献者及开发者

「Unique Slug Checker」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Mehrad ](https://profiles.wordpress.org/moma2work/)

「Unique Slug Checker」插件已被翻译至 2 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/unique-slug-checker/contributors)
为本插件所做的贡献。

[帮助将「Unique Slug Checker」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/unique-slug-checker)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/unique-slug-checker/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/unique-slug-checker/)，或通过[RSS](https://plugins.trac.wordpress.org/log/unique-slug-checker/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/unique-slug-checker/)。

## 更新日志

#### 1.4.0

 * **Compatibility:** WordPress 7.0 support
 * **Compatibility:** PHP 8.2 and 8.3 support
 * **Fix:** Removed deprecated `get_page_by_path` function
 * **Performance:** Added caching for faster slug checking (30-40% faster)
 * **Performance:** Optimized database queries
 * **Security:** Improved nonce verification and data sanitization
 * **Feature:** Full support for all Custom Post Types
 * **Fix:** Memory leak prevention in Gutenberg editor
 * **Code quality:** Better error handling and type hints

#### 1.3.0

 * Fix: Prevent duplicate notices and DOM pollution
 * Fix: Avoid re-attaching handlers to already-processed fields
 * Enhancement: Rank Math modal compatibility (dynamic fields)
 * Enhancement: Clean and concise English comments in JS
 * Improved: More stable and accurate field detection

#### 1.2.0

 * Feature: Full support for Gutenberg (Block Editor)
 * Feature: Show slug status icon in post list
 * Fix: Improved nonce handling and data validation
 * Enhancement: Better AJAX response and UI feedback
 * Improved: SEO plugin support (AIOSEO, Yoast, Rank Math)

#### 1.1.0

 * Added: Slug check status in post list view
 * Added: Alternative slug suggestions
 * Improved: SEO plugin support (Yoast, Rank Math)
 * Improved: Full compatibility with Gutenberg editor

#### 1.0.1

 * Added support for WordPress 6.8.
 * Added multilingual support (8 languages).
 * Improved validation and notices.
 * Minor optimizations.

#### 1.0.0

 * Initial release.
 * Real-time slug validation.
 * Integration with Yoast and Rank Math fields.
 * Base translation and localization setup.

## 额外信息

 *  版本 **1.4.0**
 *  最后更新：**3 月前**
 *  活跃安装数量 **60+**
 *  WordPress 版本 ** 5.6 或更高版本 **
 *  已测试的最高版本为 **7.0.7**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/unique-slug-checker/) 、 [Spanish (Chile)](https://cl.wordpress.org/plugins/unique-slug-checker/)
   和 [Spanish (Spain)](https://es.wordpress.org/plugins/unique-slug-checker/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/unique-slug-checker)
 * 标签
 * [all in one seo](https://cn.wordpress.org/plugins/tags/all-in-one-seo/)[gutenberg](https://cn.wordpress.org/plugins/tags/gutenberg/)
   [rank math](https://cn.wordpress.org/plugins/tags/rank-math/)[Yoast](https://cn.wordpress.org/plugins/tags/yoast/)
 *  [高级视图](https://cn.wordpress.org/plugins/unique-slug-checker/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/unique-slug-checker/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/unique-slug-checker/reviews/)

## 贡献者

 *   [ Mehrad ](https://profiles.wordpress.org/moma2work/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/unique-slug-checker/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://github.com/sponsors/m2mahdavi)