Changeset 3777006
- Timestamp:
- 10/31/2026 02:51:14 PM (6 hours ago)
- Location:
- default-permalink
- Files:
-
- 2 edited
-
tags/1.11.0/readme.txt (modified) (4 diffs)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
default-permalink/tags/1.11.0/readme.txt
r3776733 r3777006 25 25 1. Check "Enable" and save changes. 26 26 27 Slug formats, target post types, the bulk conversion and more are explained in the usage guide: https://www.redwoodcity.jp/app/default-permalink/en/usage-en/ 28 27 29 = WP-CLI = 28 30 29 31 * `wp default-permalink status` shows the settings and the number of posts with a multi-byte slug. 30 32 * `wp default-permalink convert --dry-run` lists the posts to convert and their new slugs; `wp default-permalink convert` converts them all (no 50-post limit). 31 * `--post_type =page` (comma-separated) converts only those post types, and `--limit=500` stops after that many posts so a large site can be converted in steps; the command prints an `--after=<ID>` value to continue from.33 * `--post_type`, `--limit` and `--after` convert a large site in steps. See the documentation: https://www.redwoodcity.jp/app/default-permalink/en/docs-en/ 32 34 33 35 = Convert a single post = 34 36 35 In the post, page and media lists, a post that still has a multi-byte slug shows a "Convert slug" link under its title (when the plugin is enabled and you can edit the post). It converts just that post to the selected format; the old URL is redirected to the new one.37 In the post, page and media lists, a post that still has a multi-byte slug shows a "Convert slug" link under its title (when the plugin is enabled and you can edit the post). It converts just that post to the selected format; for posts, the old URL is redirected to the new one (pages are not redirected, see the FAQ). 36 38 37 39 = Site Health = … … 46 48 47 49 == Frequently Asked Questions == 50 51 More questions and answers: https://www.redwoodcity.jp/app/default-permalink/en/faq-en/ 48 52 49 53 = Can I still use a Japanese (multi-byte) slug? = … … 61 65 = How do I customize the slug format? = 62 66 63 Use the `default_permalink_slug` filter for posts and `default_permalink_term_slug` for terms :67 Use the `default_permalink_slug` filter for posts and `default_permalink_term_slug` for terms. The result is made unique automatically. Examples and parameters: https://www.redwoodcity.jp/app/default-permalink/en/docs-en/ 64 68 65 `add_filter( 'default_permalink_slug', function ( $slug, $post_id, $post_type ) { return 'article-' . $post_id; }, 10, 3 );` 69 = What happens to old URLs after a slug is converted? = 66 70 67 The result is made unique automatically (a suffix such as `-2` is added if needed). 68 69 = What happens to old URLs after the bulk conversion? = 70 71 WordPress stores the old slug and redirects the old URL to the new permalink (301). 71 For posts and other non-hierarchical post types, WordPress stores the old slug and redirects the old URL to the new permalink (301). Pages and other hierarchical post types are not redirected, because WordPress does not keep their old slugs: the old URL returns 404. If such a page is linked from elsewhere, set up a redirect yourself (for example with a redirection plugin). 72 72 73 73 == Changelog == … … 152 152 * Initial release. 153 153 154 The changelog of every version, with downloads: https://www.redwoodcity.jp/app/default-permalink/en/changelog-en/ 155 154 156 == Upgrade Notice == 155 157 -
default-permalink/trunk/readme.txt
r3776733 r3777006 25 25 1. Check "Enable" and save changes. 26 26 27 Slug formats, target post types, the bulk conversion and more are explained in the usage guide: https://www.redwoodcity.jp/app/default-permalink/en/usage-en/ 28 27 29 = WP-CLI = 28 30 29 31 * `wp default-permalink status` shows the settings and the number of posts with a multi-byte slug. 30 32 * `wp default-permalink convert --dry-run` lists the posts to convert and their new slugs; `wp default-permalink convert` converts them all (no 50-post limit). 31 * `--post_type =page` (comma-separated) converts only those post types, and `--limit=500` stops after that many posts so a large site can be converted in steps; the command prints an `--after=<ID>` value to continue from.33 * `--post_type`, `--limit` and `--after` convert a large site in steps. See the documentation: https://www.redwoodcity.jp/app/default-permalink/en/docs-en/ 32 34 33 35 = Convert a single post = 34 36 35 In the post, page and media lists, a post that still has a multi-byte slug shows a "Convert slug" link under its title (when the plugin is enabled and you can edit the post). It converts just that post to the selected format; the old URL is redirected to the new one.37 In the post, page and media lists, a post that still has a multi-byte slug shows a "Convert slug" link under its title (when the plugin is enabled and you can edit the post). It converts just that post to the selected format; for posts, the old URL is redirected to the new one (pages are not redirected, see the FAQ). 36 38 37 39 = Site Health = … … 46 48 47 49 == Frequently Asked Questions == 50 51 More questions and answers: https://www.redwoodcity.jp/app/default-permalink/en/faq-en/ 48 52 49 53 = Can I still use a Japanese (multi-byte) slug? = … … 61 65 = How do I customize the slug format? = 62 66 63 Use the `default_permalink_slug` filter for posts and `default_permalink_term_slug` for terms :67 Use the `default_permalink_slug` filter for posts and `default_permalink_term_slug` for terms. The result is made unique automatically. Examples and parameters: https://www.redwoodcity.jp/app/default-permalink/en/docs-en/ 64 68 65 `add_filter( 'default_permalink_slug', function ( $slug, $post_id, $post_type ) { return 'article-' . $post_id; }, 10, 3 );` 69 = What happens to old URLs after a slug is converted? = 66 70 67 The result is made unique automatically (a suffix such as `-2` is added if needed). 68 69 = What happens to old URLs after the bulk conversion? = 70 71 WordPress stores the old slug and redirects the old URL to the new permalink (301). 71 For posts and other non-hierarchical post types, WordPress stores the old slug and redirects the old URL to the new permalink (301). Pages and other hierarchical post types are not redirected, because WordPress does not keep their old slugs: the old URL returns 404. If such a page is linked from elsewhere, set up a redirect yourself (for example with a redirection plugin). 72 72 73 73 == Changelog == … … 152 152 * Initial release. 153 153 154 The changelog of every version, with downloads: https://www.redwoodcity.jp/app/default-permalink/en/changelog-en/ 155 154 156 == Upgrade Notice == 155 157
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)