Опис
This plugin adds a simple post-type drop-down to the post editor interface, allowing you to reassign any post to a new post type. It allows you to switch a post’s type while editing your post.
Підтримувані типи
Плагін може конвертувати майже будь-яку комбінацію записів, сторінок і навіть власних типів записів:
- Сторінка в Запис
- Запис в Сторінку
- Запис в Власний
- Власний у Власний
Починаючи з версії 3.0.0, підтримку перемикання між вкладеннями було видалено. Це може відновитися в наступній версії.
Невидимі типи записів, такі як редакції, меню тощо, навмисно виключено. Але якщо вам потрібен доступ до невидимих типів записів, ви можете налаштувати межі за допомогою фільтра ‘pts_post_type_filter’.
Масове редагування
За допомогою масового редагування (спасибі Метью Геррінгу) ви можете вибрати всі записи певного типу та перетворити їх на новий тип однією швидкою дією.
Редактор блоків
With Block Editor support (thanks to Daniel Bachhuber) you can switch between post types that use either the Block Editor or Classic Editor without losing any of your embedded content.
Скріншоти



Встановлення
- У Майстерні WordPress перейдіть до «Плагіни» -> «Додати плагін».
- Шукайте “Post Type Switcher”.
- Встановіть плагін, натиснувши кнопку «Встановити».
- Активуйте плагін, натиснувши кнопку «Активувати».
- На екрані редагування запису над кнопкою «Опублікувати» є поле «Тип запису».
- Змінюйте типи публікацій за потреби.
Мінімальні вимоги
- WordPress version 6.6 or greater.
- PHP версії 8.0 або вище.
- MySQL версії 5.7 або вище.
Рекомендовані вимоги
- Остання версія WordPress.
- PHP версії 8.0 або вище.
- MySQL версії 8.0 чи новішої, або MariaDB 10.5 чи новішої.
Часті питання
-
Навіщо мені це потрібно?
-
You need to selectively change a post’s type from one to another.
-
Це руйнує мої таксономічні асоціації?
-
Не повинно. Цей плагін змінює лише властивість ‘post_type’ запису.
-
Це руйнує вміст редактора блоків?
-
Не повинно. Будьте обережні під час редагування вмісту HTML під час перемикання між типами редакторів!
-
Це видалить мій вміст?
-
Ні. Цей плагін не містить жодного коду, здатного щось видалити.
Конфлікти плагінів не є нечуваним явищем, і їх важко вирішити.
Якщо ви хвилюєтеся, зробіть резервну копію своєї бази даних і деактивуйте всі інші плагіни перед використанням цього інструменту.
Якщо ви все ще хвилюєтеся, зверніться по допомогу на форуми підтримки WordPress.org.
-
Where can I get support?
-
Use the WordPress.org support forum for installation and usage questions.
-
Where can I discuss development?
-
Use GitHub Discussions for broader development conversations. Report reproducible defects through GitHub Issues.
Відгуки
Учасники та розробники
“Post Type Switcher” — проект з відкритим вихідним кодом. В розвиток плагіну внесли свій вклад наступні учасники:
Учасники“Post Type Switcher” було перекладено на 35 локалізацій. Дякуємо перекладачам за їх роботу.
Перекладіть “Post Type Switcher” на вашу мову.
Цікавитесь розробкою?
Перегляньте код, перегляньте сховище SVN або підпишіться на журнал розробки за допомогою RSS.
Журнал змін
4.1.1
- Restore the Block Editor interface by declaring all required WordPress script dependencies
4.1.0
- Require WordPress 6.6 and test through WordPress 7.1
- Load Block Editor assets from their generated dependency metadata
- Normalize request data before nonce and AJAX routing checks
- Rely on WordPress core for plugin translation loading
- Add maintained compatibility, quality, and release automation
4.0.1
- Prevent Authors & Contributors from changing types on posts of Editors & Admins
4.0.0
- Потрібен WordPress 6.2
- Потрібен PHP 8.0
- Покращення стилю редактора блоків
- Stash original & previous types in post meta
- Add
pts_get_post_types_filterfilter - Load textdomain on
initinstead ofplugins_loaded
3.3.0
- Hide the “Type” column by default
3.2.1
- Оновлення автора
- Add sponsor link
3.2.0
- Block editor support
3.1.0
- Fix post targeting when called recursively
3.0.0
- Improved Quick-Edit and Bulk-Edit support
- Remove
attachmenttype support for now, as there is no way to switch back - Fix bug causing some post-types to switch unexpectedly
2.0.1
- Ensure quick-edit works with new procedure
- Quick-edit “Type” column works again!
2.0.0
- Improved plugin compatibility with WooThemes Sensei
- Filter post arguments vs. hook to save_post
- Add “post_type_switcher” action
1.7.0
- Add support for network activation
1.6.0
- Add textdomains for localization
- Load translation strings using load_plugin_textdomain()
- Before saving data chack if it’s not an autosave using wp_is_post_autosave()
- Before saving data chack if it’s not a revision using wp_is_post_revision()
- Security: Prevent direct access to directories
- Security: Translation strings escaping
- Додано знімки екрану
1.5.0 – norcross
- Fix multiple quickedit dropdowns
1.4.0
- Improve handling of non-public post types
1.3.0
- Fix saving of autodrafts
1.2.1
- Improved WordPress 3.9 integration (added dashicon to publish metabox)
1.2.0
- Add bulk editing to supported post types
- Props Matthew Gerring for bulk edit contribution
1.1.1
- Add is_admin() check to prevent theme-side interference
- Change save_post priority to 999 to avoid plugin compatibility issues
- Remove ending closing php tag
- HTML and PHPDoc improvements
1.1.0
- Fix revisions being nooped
- Fix malformed HTML for some user roles
- Make a singleton (meh…)
1.0.0
- Fix JS bugs
- Audit post save bail conditions
- Tweak UI for WordPress 3.3
0.3.0
- Use the API to change the post type, fixing a conflict with persistent object caches
- No longer requires JavaScript
0.2.0
- Disallow post types that are not public and do not have a visible UI
0.1.0
- Реліз
