توضیحات
When a post title contains multi-byte characters (such as Japanese), WordPress generates a URL-encoded slug like %e3%81%82..., which results in a long and unreadable permalink.
This plugin replaces such auto-generated slugs with {post_type}-{post_ID} (e.g. post-123). A multi-byte slug is kept as-is when the user has explicitly specified it.
Usage
- Go to “Settings” -> “Default Permalink” in the WordPress admin.
- Check “Enable” and save changes.
نصب
- Upload the
default-permalinkfolder to the/wp-content/plugins/directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
- Enable the plugin’s behavior from “Settings” -> “Default Permalink”.
نقد و بررسیها
نقد و بررسیای برای این افزونه یافت نشد.
توسعه دهندگان و همکاران
“Default Permalink” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کردهاند.
مشارکت کنندگانترجمه “Default Permalink” به زبان شما.
علاقه مند به توسعه هستید؟
کد را مرور کنید، مخزن SVN را بررسی کنید، یا از طریق RSS در گزارش توسعه مشترک شوید.
گزارش تغییرات
1.5.1
- Updated the plugin and author URLs to the new product site (https://www.redwoodcity.jp/app/default-permalink/).
- Code quality: WordPress Coding Standards compliance and Plugin Check annotations. No functional changes.
1.5
- Added an admin notice shown after a slug has been automatically replaced.
- Added a bulk conversion tool for existing multi-byte slugs. Old URLs are redirected (301) by the WordPress core old-slug mechanism.
- Hardened: slug replacement is skipped when no post ID is available (prevents colliding “post-0” slugs on direct wp_insert_post calls).
1.4
- Added slug format options: post type and ID (post-123), post date and ID (20260613-123), or a random string (a1b2c3d4).
- Added target post type selection.
1.3
- Added uninstall cleanup: plugin options are deleted when the plugin is uninstalled.
- Added a Settings link on the Plugins screen.
- Added the default_permalink_slug filter for customizing the generated slug.
1.2
- Confirmed compatibility with the latest WordPress.
- Replaced the deprecated get_page() with get_post() (fixes a fatal error on PHP 8).
- Hardened the settings page: output escaping, sanitize callback for the option, checked() helper.
- Made the settings page strings translatable and load the plugin text domain.
1.1
- Added Japanese translation.
1.0
- Initial release.
