Digital Sovereignty for everyone

MCP ability

Copy post(s) to draft

lh-copy-to-draft/copy-post

Duplicates one or more posts, pages, or CPTs as new drafts, copying core fields, meta, and taxonomy terms. Per item, an opaque custom_overrides object can be supplied; it is forwarded as-is to the lh_copy_to_draft_after_duplicate_post action for consumption by other plugins (e.g. an events plugin restoring a date on the copy from its own table). This ability never inspects or acts on custom_overrides itself. Requires edit_posts, and edit rights on each post copied. Pass site_id to act on another site you belong to.

Parameter Type Required Default Description
items array of object Yes One entry per post to copy.
task_id integer No Optional. The lh-tasks task this call is working on. Pass with claim_token: the call is refused unless you hold that claim, and a successful call renews it.
claim_token string No Optional. The claim_token from claim-next-task for task_id. Required when task_id is given.
site_id integer No Optional. ID of another site in the network to act on; list-my-sites gives the sites you belong to. Permissions are checked on that site. Omit for this site.
run_without_site_plugins boolean No Optional, with site_id. Run the call through this connector even when that site has plugins of its own that cannot be loaded for it. Without this, such a write is refused if it cannot be run on that site itself.

If you like this plugin please consider making a donation to further development

Install LHero.org

lhero.org

Open it straight from your home screen, full screen and quicker to load.

  1. Tap the Share button . If you cannot see it, tap ••• first.
  2. Scroll down and tap Add to Home Screen.
  3. Tap Add.
  1. Tap the browser menu â‹®.
  2. Tap Install app or Add to Home screen.
  1. In the menu bar, choose File, then Add to Dock.

Use your browser's menu to install this site or add it to your home screen.