| 开发者 | aryanjasala |
|---|---|
| 更新时间 | 2026年11月16日 19:34 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
Template Post Type for posts and custom post types).theme.json and templates created in the Site Editor).wp axle-page-template-usage list (add --status=missing to see only problems)wp axle-page-template-usage reassign missing default moves every page on a missing template to the default one.wp axle-page-template-usage check-theme <theme> lists what would lose its template under an installed theme.wp axle-page-template-usage set-mapping <theme> <from> <to> saves what to use instead, and apply-mapping runs the saved plan for the active theme.wp axle-page-template-usage history lists recorded changes, undo <id> and undo-batch <batch> undo them.The page was saved with a template that the active theme does not provide any more. This usually happens after a theme switch, or after a template file is renamed or deleted. WordPress shows the default template for that page. Pick a new template in the editor, or in Quick Edit, to clear it.
People who can edit pages, which by default means Editors and Administrators. Each person only sees the post types they can edit: someone who cannot edit posts sees nothing about posts, not in the report, the history or the abilities. Checking a theme lists the installed themes, so it is only for people who can switch themes. Both can be changed with filters.
No. The check only reads. Saving a plan stores it, and it runs only when you activate that theme. Until then no page changes. If you never activate the theme, the plan does nothing, and you can remove it from the same screen.
The first 500 pages move during the switch (the number can be changed with the axle_page_template_usage_switch_batch_size filter). The rest follows in the background, a minute later, or at once with the "Move the rest now" button in the notice. Over WP-CLI, wp axle-page-template-usage apply-mapping moves them all.
A change can be undone only while the page still has the template that change set. If the page was changed again since, or deleted, the History tab says so. Undoing is recorded in the history too, so you can undo an undo.
One small row per change, in one table. It keeps the latest 10,000 changes, drops the oldest first, and deletes entries older than a year. Both limits have filters. Changes are written in groups, so moving thousands of pages stays fast.
No. It runs one grouped count query when the screen loads and caches the result for a minute.
Yes, if your theme offers templates for posts. The column only appears on post types that have templates, or that have posts pointing at a template.
wp axle-page-template-usage list and wp axle-page-template-usage reassign commands.