{"id":35553013,"url":"https://github.com/carstingaxion/duplicate-as","last_synced_at":"2026-04-01T23:30:59.956Z","repository":{"id":330738502,"uuid":"1123748796","full_name":"carstingaxion/duplicate-as","owner":"carstingaxion","description":"Duplicate or Duplicate as different post type, directly from the Editor Sidebar or the Admin List Tables.","archived":false,"fork":false,"pushed_at":"2026-03-16T07:53:05.000Z","size":1804,"stargazers_count":1,"open_issues_count":10,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-16T08:25:12.537Z","etag":null,"topics":["wordpress"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/carstingaxion.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-27T14:37:41.000Z","updated_at":"2026-03-16T07:53:10.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/carstingaxion/duplicate-as","commit_stats":null,"previous_names":["carstingaxion/duplicate-as"],"tags_count":4,"template":false,"template_full_name":"figuren-theater/new-ft-module","purl":"pkg:github/carstingaxion/duplicate-as","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carstingaxion%2Fduplicate-as","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carstingaxion%2Fduplicate-as/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carstingaxion%2Fduplicate-as/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carstingaxion%2Fduplicate-as/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carstingaxion","download_url":"https://codeload.github.com/carstingaxion/duplicate-as/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carstingaxion%2Fduplicate-as/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31292956,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T21:15:39.731Z","status":"ssl_error","status_checked_at":"2026-04-01T21:15:34.046Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["wordpress"],"created_at":"2026-01-04T08:00:42.079Z","updated_at":"2026-04-01T23:30:59.456Z","avatar_url":"https://github.com/carstingaxion.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Duplicate as\n\n**Contributors:** carstenbach \u0026 WordPress Telex  \n**Tags:** duplicate, post, page, editor, block-editor  \n**Tested up to:** 6.8  \n**Stable tag:** 0.3.1  \n**License:** GPLv2 or later  \n**License URI:** https://www.gnu.org/licenses/gpl-2.0.html  \n\n[![Playground Demo Link](https://img.shields.io/badge/WordPress_Playground-blue?logo=wordpress\u0026logoColor=%23fff\u0026labelColor=%233858e9\u0026color=%233858e9)](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/carstingaxion/duplicate-as/main/.wordpress-org/blueprints/blueprint.json) [![Build, test \u0026 measure](https://github.com/carstingaxion/duplicate-as/actions/workflows/build-test-measure.yml/badge.svg?branch=main)](https://github.com/carstingaxion/duplicate-as/actions/workflows/build-test-measure.yml)\n\n---\n\n## Description\n\nDuplicate or *Duplicate as* different post type, directly from the Editor Sidebar or the Admin List Tables.\n\n### How It Works\n\n1. Open any post or page in the block editor  \n2. Open the Editor Sidebar  \n3. Click **Duplicate** or **Duplicate as (...)** to create a copy  \n4. The plugin will copy all content and metadata  \n5. You’ll be automatically redirected to edit the new draft  \n\nThe plugin works with posts and pages by default and can be extended to support custom post types through the post type supports system.\n\n\n#### Example 1: Duplicate pages *(supported by default)*\n\n```php\nadd_post_type_support( 'page', 'duplicate_as' );\n```\n\n| ![](.wordpress-org/screenshot-1.png) | ![](.wordpress-org/screenshot-2.png)  |\n| --- | --- |\n\n#### Example 2: Duplicate and \"Duplicate as\" for posts *(supported by default)*\n\n```php\nadd_post_type_support( 'post', 'duplicate_as', array('page', 'post') );\n```\n\n| ![](.wordpress-org/screenshot-3.png) | ![](.wordpress-org/screenshot-4.png)  |\n| --- | --- |\n\n\n---\n\n## Frequently Asked Questions\n\n### Where is the duplicate button?\n\nDuplicate or *Duplicate as* different post type, directly from the Editor Sidebar or the Admin List Tables\n\n### Who can see and use the duplicate button?\n\nOnly users with the appropriate post editing capabilities can see and use the duplicate button. This typically includes Editors, Administrators, and Authors.\n\n### What content gets duplicated?\n\nThe plugin duplicates:\n\n- Post/Page title  \n- Post/Page content and all blocks  \n- Featured image  \n- Categories  \n- Tags  \n- Custom fields (except internal WordPress fields like edit locks)  \n- Post format  \n- Comment and ping status  \n- Menu order  \n\n### What happens after I click duplicate?\n\nThe plugin creates a new draft copy of your post/page and automatically redirects you to edit it. The new post will have the same title as the original.\n\n### Can I duplicate custom post types?\n\nYes. To enable duplication for custom post types, add post type support:\n\n```php\nadd_post_type_support( 'your_post_type', 'duplicate_as' );\n```\n\n### Can I transform posts to different post types?\n\nYes. Add post type support with a target post type:\n\n```php\nadd_post_type_support( 'page', 'duplicate_as', 'post' );\n```\n\nThis will change the button label to Transform and create the duplicate as the target post type.\n\n### Does it work with page builders?\n\nYes. Since it duplicates the raw content and all blocks, it works with any block-based page builder or the standard WordPress block editor.\n\n### Can I customize what gets duplicated?\n\nYes. The plugin provides several filter hooks:\n\n- `duplicate_as_post_data` – Filter post data\n- `duplicate_as_taxonomies` – Filter taxonomies to copy\n- `duplicate_as_taxonomy_terms` – Filter terms for a specific taxonomy\n- `duplicate_as_excluded_meta_keys` – Filter excluded meta keys\n- `duplicate_as_meta_value` – Filter individual meta values\n- `duplicate_as_featured_image` – Filter featured image ID\n\n---\n\n## Screenshots\n\n1. The duplicate option appears in the More Actions menu (⋮) in the editor header\n2. Processing state shows while the post is being duplicated\n3. Success redirect to the newly created draft\n\n---\n\n## Installation\n\n1. Upload the plugin files to the `/wp-content/plugins/duplicate-as` directory, ~~or install the plugin through the WordPress Plugins screen~~  \n2. Activate the plugin through the **Plugins** screen in WordPress  \n3. Open any post or page in the block editor  \n4. Click the More Actions menu (⋮) to see the duplicate option  \n\n---\n\n## Changelog\n\nAll notable changes to this project will be documented in the [CHANGELOG.md](CHANGELOG.md).\n\n---\n\n# Developer Notes\n\nTake a look at the short [Developer Documentation](docs/developer/README.md) and the [list of filter \u0026 action hooks](docs/developer/hooks/Hooks.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarstingaxion%2Fduplicate-as","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarstingaxion%2Fduplicate-as","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarstingaxion%2Fduplicate-as/lists"}