Originally developed by oogami.name. This fork is updated and maintained by mudkipme.
This plugin adds server-side conversion between Chinese Simplified (zh-hans) and Chinese Traditional (zh-hant) for WordPress.
- Server-side conversion using MediaWiki conversion tables.
- URL variants supported via query string or permalink variant segment.
- Optional browser language detection and cookie-based preference storage.
- Optional search keyword conversion across Simplified/Traditional.
- Optional exclusion from conversion for:
lang="ja"elements- specific HTML tag names
<!--WPCC_NC_START--> ... <!--WPCC_NC_END-->blocks
- WordPress: 6.9+
- PHP: 8.3+
- Upload the plugin folder to
wp-content/plugins/wp-chinese-conversion. - Activate WP Chinese Conversion in WordPress admin.
- (Optional) Add the widget to your sidebar or call
wpcc_output_navi()in a theme template.
To enable debug output in the frontend footer, add the following line to wp-chinese-conversion.php right after \Wpcc\Plugin::bootstrap();:
define('WPCC_DEBUG', true);
\Wpcc\Diagnostics::set_debug_data(array());- This fork only supports zh-hans and zh-hant.
- The "do not convert" HTML tag option supports tag names only (no CSS selectors).