Doc-section

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.