Digital Sovereignty for everyone

Hooks & filters

Actions

  • admin_action_lh_copy_to_draft_save_as_new_post — handles the single-post copy request (template tag / “more” modal link).
  • lh_copy_to_draft_after_duplicate_post — fires after a duplicate is fully created (core fields + meta + taxonomy). See “Extensibility” in How it works.

Filters

  • bulk_actions-edit-{post_type} (core, consumed) — adds the “Copy to draft” bulk action per applicable post type.
  • handle_bulk_actions-edit-{post_type} (core, consumed) — processes the bulk copy and determines the redirect.
  • lh_copy_to_draft_get_applicable_post_types — filter the list of post types eligible for copying (defaults to all public post types except product).
  • lh_copy_to_draft_get_clone_post_link — filter the generated (pre-nonce) single-post copy link URL.
  • lh_copy_to_draft_post_defaults_filter — filter default wp_insert_post() overrides for the new draft.
  • lh_copy_to_draft_meta_defaults_filter — filter meta keys excluded/overridden on copy.
  • lh_copy_to_draft_taxonomy_defaults_filter — filter taxonomy term overrides on copy.
  • lh_copy_to_draft_return_plugin_debugging_status — enable/disable debug logging (also requires WP_DEBUG true).
  • lh_more_modal_template_list_end (consumed, not defined here) — appends the single-post copy link into a theme/plugin-provided “more” action modal.

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.