Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/modernamusements/modern-amusement-page-duplicator/archive/refs/heads/main.zipDuplicate any post, page or custom post type with a deep, serialization-safe copy of meta, taxonomies, featured image and — optionally — children. Includes bulk actions, a REST endpoint and a WP-CLI command.
Version: 1.0.1 · Requires: WordPress 6.0+, PHP 7.4+ · License: GPL-2.0-or-later
🇩🇪 Deutsch
Mit ModernAmusement Page Duplicator duplizierst du beliebige Beiträge, Seiten oder Custom Post Types direkt aus der Listenansicht. Statt einer naiven Kopie führt das Plugin eine tiefe, serialisierungs-sichere Kopie durch: Arrays, Repeater und andere strukturierte Metawerte bleiben erhalten, Taxonomy-Zuordnungen werden über Term-IDs neu angelegt, und Beitragsbild sowie Seitentemplate (falls vorhanden) werden übernommen.
Funktionen
- Tiefe Meta-Kopie — strukturierte/serialisierte Metawerte bleiben erhalten, nichts geht im Editor danach kaputt.
- Funktioniert mit jedem Post Type — Beiträge, Seiten und jeder öffentliche Custom Post Type (Events, Kurse, Produkte, …).
- Drei Wege zu duplizieren — Listen-Zeilenaktion, Bulk-Aktion sowie REST-Endpoint und WP-CLI-Befehl für die Automatisierung.
- Kein Revisions-Spam — die Kopie wird direkt eingefügt, ohne
wp_insert_post-Revisions-Müll. - Hinterlässt keine Daten — Deinstallation entfernt die einzige Settings-Option.
- Übersetzungsbereit — alle Strings sind i18n-fähig.
Installation
- Lade den Ordner
modern-amusement-page-duplicatornach/wp-content/plugins/hoch (oder installiere über Plugins → Installieren). - Aktiviere das Plugin über den Bildschirm Plugins.
- Nutze Werkzeuge → Page Duplicator, um Titel-Suffix, Standard-Status und aktivierte Post Types zu konfigurieren.
FAQ
Wie dupliziere ich einen Beitrag? Öffne die Liste von Beiträgen (oder Seiten bzw. eines Custom Post Types), fahre über einen Eintrag und klicke Duplizieren. Standardmäßig wird die Kopie als Entwurf mit Suffix „ (Copy)“ erstellt.
Kann ich mehrere Elemente auf einmal duplizieren? Ja. Nutze das Bulk-Aktions-Dropdown und wähle Duplizieren für die markierten Einträge.
Kopiert es Custom Fields und Repeater?
Ja. Alle Post-Meta wird typ-erhaltend (serialisierungs-sicher) kopiert. Werte, die WordPress intern neu generiert (_wp_*-Keys), werden übersprungen.
Kopiert es Unterseiten? Standardmäßig nein. Aktiviere Auch Unterelemente duplizieren in Werkzeuge → Page Duplicator, um die ganze Hierarchie rekursiv zu kopieren.
Gibt es eine API?
Ja. POST /wp-json/ma-pd/v1/duplicate mit post_id (und optional status), sowie WP-CLI:
wp ma-pd duplicate 123 --status=draft
Changelog
- 1.0.1 — Fix: Kind-Rekursion respektiert die Kopier-Flags (Meta/Terms/Thumbnail/Template). Fix: Kind-Kopien nutzen den gleichen Ziel-Status wie die Elternkopie. Fix: Zukünftig datierte Unterseiten werden ebenfalls kopiert.
- 1.0.0 — Erstveröffentlichung.
🇬🇧 English
ModernAmusement Page Duplicator lets you duplicate any post, page or custom post type directly from the list tables. Instead of a naive copy it performs a deep, serialization-safe copy: arrays, repeaters and other structured meta values are preserved, taxonomy assignments are re-created by term ID and the featured image and page template (if any) are carried over.
Features
- Deep meta copy — structured/serialized meta values are preserved, nothing gets mangled in post edit screens afterwards.
- Works with every post type — posts, pages and any public custom post type (events, courses, products, …).
- Three ways to duplicate — list-table row action, bulk action, and a REST endpoint plus a WP-CLI command for automation.
- No revision spam — the copy is inserted directly, no
wp_insert_postrevision clutter. - No data left behind — deletion removes the single settings option.
- Translations ready — all strings are i18n-aware.
Installation
- Upload the
modern-amusement-page-duplicatorfolder to/wp-content/plugins/(or install via Plugins → Add New). - Activate the plugin through the Plugins screen.
- Use Tools → Page Duplicator to configure the title suffix, default status and enabled post types.
FAQ
How do I duplicate a post? Open the Posts (or Pages, or a custom post type) list table, hover an item and click Duplicate. By default the copy is created as a draft with a " (Copy)" suffix.
Can I duplicate several items at once? Yes. Use the bulk action dropdown and select Duplicate for the selected items.
Does it copy custom fields and repeaters?
Yes. All post meta is copied with type information preserved (serialization-safe). Values that WordPress regenerates internally (_wp_* keys) are skipped.
Does it copy child pages? By default no. Enable Also duplicate child items in Tools → Page Duplicator to copy the whole hierarchy recursively.
Is there an API?
Yes. POST /wp-json/ma-pd/v1/duplicate with a post_id (and optional status), and WP-CLI:
wp ma-pd duplicate 123 --status=draft
Changelog
- 1.0.1 — Fix: child-recursion now honours the user's copy flags (meta/terms/thumbnail/template). Fix: child copies use the same target status as the parent copy. Fix: future-dated child pages are copied as well.
- 1.0.0 — Initial release.
License
GPL-2.0-or-later — see LICENSE.
Author
Shady Tawfik · https://modern-amusement.dev/de