Title: QBlocks Menu Sync for Polylang
Author: Qasim
Published: <strong>2026 年 4 月 17 日</strong>
Last modified: 2026 年 4 月 17 日

---

搜索插件

![](https://ps.w.org/qblocks-menu-sync-for-polylang/assets/banner-772x250.png?rev
=3509115)

![](https://ps.w.org/qblocks-menu-sync-for-polylang/assets/icon-256x256.png?rev=
3509115)

# QBlocks Menu Sync for Polylang

 作者：[Qasim](https://profiles.wordpress.org/qasim4parray/)

[下载](https://downloads.wordpress.org/plugin/qblocks-menu-sync-for-polylang.1.0.0.zip)

 * [详情](https://cn.wordpress.org/plugins/qblocks-menu-sync-for-polylang/#description)
 * [评价](https://cn.wordpress.org/plugins/qblocks-menu-sync-for-polylang/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/qblocks-menu-sync-for-polylang/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/qblocks-menu-sync-for-polylang/#developers)

 [支持](https://wordpress.org/support/plugin/qblocks-menu-sync-for-polylang/)

## 描述

**QBlocks Menu Sync for Polylang** adds a “Duplicate Menu” panel to the WordPress
Appearance > Menus screen. Clone any navigation menu — including all items, hierarchy,
and settings — in seconds, with full Polylang multilingual support.

This plugin is not affiliated with Polylang or its developers. “Polylang” is a trademark
of its respective owner; this plugin simply integrates with the Polylang plugin’s
public API.

#### Features

 * **One-click menu duplication** — duplicate any menu with all items preserved
 * **Polylang integration** — clone menus to one or more target languages in a single
   action
 * **Smart translation** — automatically links to translated pages, posts, and taxonomy
   terms when available
 * **Fallback handling** — keeps original linked objects when no translation exists
 * **Custom links** — duplicated as-is with no changes
 * **Theme location assignment** — optionally assign the cloned menu to any registered
   theme location
 * **Polylang-aware locations** — assigns per-language location slots without affecting
   other languages
 * **Unique naming** — auto-generates unique menu names to prevent conflicts
 * **Source language badge** — clearly shows which language you are cloning from
 * **Secure** — nonce verification, capability checks, input sanitization, and output
   escaping throughout

#### How It Works

 1. Go to **Appearance > Menus**
 2. Select the menu you want to duplicate
 3. Open the **Duplicate Menu** panel (above the menu structure)
 4. Choose target languages (if Polylang is active)
 5. Optionally set a custom name and assign theme locations
 6. Click **Duplicate Menu**

#### Polylang Support

When Polylang is active, the plugin detects the source menu’s language and offers
all other active languages as targets. For each target language:

 * Pages and posts are automatically linked to their translation
 * Categories and custom taxonomy terms are linked to their translation
 * If no translation exists, the original object is kept as a fallback
 * Custom links are duplicated unchanged
 * The new menu is assigned the correct Polylang language

#### Without Polylang

The plugin works as a simple menu duplicator — no language features, just a clean
copy of the menu and all its items.

## 屏幕截图

[⌊Duplicate Menu panel on the Menus screen (collapsed)⌉⌊Duplicate Menu panel on 
the Menus screen (collapsed)⌉[

Duplicate Menu panel on the Menus screen (collapsed)

[⌊Duplicate Menu panel expanded with Polylang languages and location options⌉⌊Duplicate
Menu panel expanded with Polylang languages and location options⌉[

Duplicate Menu panel expanded with Polylang languages and location options

## 安装

 1. Upload the `qblocks-menu-sync-for-polylang` folder to `/wp-content/plugins/`.
 2. Activate the plugin through the **Plugins** menu in WordPress.
 3. Go to **Appearance > Menus** — the Duplicate Menu panel appears above the menu 
    structure.

## 常见问题

### Does this plugin require Polylang?

No. Without Polylang, it works as a straightforward menu duplicator. Polylang integration
is optional and activates automatically when Polylang is detected.

### Is this plugin affiliated with Polylang?

No. This plugin is independently developed and is not affiliated with, sponsored
by, or endorsed by Polylang or its developers. It simply uses the public Polylang
API.

### Can I duplicate a menu to multiple languages at once?

Yes. When Polylang is active, you can check multiple target languages and the plugin
creates one menu per language in a single action.

### What happens if a page does not have a translation?

The menu item keeps the original (source language) page as a fallback. You can update
it manually later when the translation is created.

### Will it overwrite my existing menus?

No. The plugin always creates new menus with unique names. It never modifies or 
deletes existing menus.

### Can I assign the duplicated menu to a theme location?

Yes. The Duplicate Menu panel shows all registered theme locations as checkboxes.
In Polylang mode, only the target language’s location slot is affected — other languages
remain untouched.

## 评价

此插件暂无评价。

## 贡献者及开发者

「QBlocks Menu Sync for Polylang」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Qasim ](https://profiles.wordpress.org/qasim4parray/)

[帮助将「QBlocks Menu Sync for Polylang」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/qblocks-menu-sync-for-polylang)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.0

 * Initial release
 * Menu duplication with full item hierarchy preservation
 * Polylang integration with automatic object translation
 * Multi-language cloning in a single action
 * Theme location assignment with Polylang-aware per-language slots
 * Source language badge display
 * Confirmation dialog and double-submit protection

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**2 月前**
 *  活跃安装数量 **20+**
 *  WordPress 版本 ** 5.8 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/qblocks-menu-sync-for-polylang/)
 * 标签
 * [menu](https://cn.wordpress.org/plugins/tags/menu/)[multilingual](https://cn.wordpress.org/plugins/tags/multilingual/)
   [navigation](https://cn.wordpress.org/plugins/tags/navigation/)[polylang](https://cn.wordpress.org/plugins/tags/polylang/)
   [sync](https://cn.wordpress.org/plugins/tags/sync/)
 *  [高级视图](https://cn.wordpress.org/plugins/qblocks-menu-sync-for-polylang/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/qblocks-menu-sync-for-polylang/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/qblocks-menu-sync-for-polylang/reviews/)

## 贡献者

 *   [ Qasim ](https://profiles.wordpress.org/qasim4parray/)

## 支持

最近两个月解决的问题：

     总计 1，已解决 0

 [查看支持论坛](https://wordpress.org/support/plugin/qblocks-menu-sync-for-polylang/)