Duplicator 5.2.0 has 93 actions and 113 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Duplicator fires an action
add_action( 'duplicator_after_overwrite_params_created', function( $filePath, $params, $packageHash ) {
// Your code runs here.
}, 10, 3 );
// Change a value Duplicator is about to use
add_filter( 'duplicator_cap_enabled', function( $result, $cap, $userHasCap ) {
// Change $result here.
return $result;
}, 10, 3 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
duplicator_cap_enabled
filter/** * Filter to dynamically override any capability result. */ apply_filters( 'duplicator_cap_enabled', $result, $cap, $userHasCap ); -
/** * Filter to customize how the current user is ensured to keep capabilities. * Core adds the user's role. Addons can override to add user ID instead. */ apply_filters( 'duplicator_add_current_user_role', $capData, $user ); -
/** * Allow changing notification data before it will be updated in database. */ apply_filters( 'duplicator_admin_notifications_update_data', $data ); -
/** * Fires after installer overwrite params file is created */ do_action( 'duplicator_after_overwrite_params_created', $filePath, $params, $packageHash ); -
/** * Filter to gate access to admin notifications. Addons can require a more * restrictive capability if needed. */ apply_filters( 'duplicator_can_view_notifications', CapMng::can(CapMng::CAP_SETTINGS, false) ); -
/** * Filter to allow addons to register their capabilities */ apply_filters( 'duplicator_capabilities_default', $caps ); -
duplicator_capabilities_info
filter/** * Filter to allow addons to register their capabilities info */ apply_filters( 'duplicator_capabilities_info', $capsInfo ); -
/** * Filter to register additional protected capabilities. Addons that introduce * sensitive caps hook here to preserve user access during cap updates. */ apply_filters( 'duplicator_capabilities_protected', $protected ); -
/** * Filter the list of database tables */ apply_filters( 'duplicator_database_tables_list', $results ); -
/** * Filter the target of the details page Backups tab */ apply_filters( 'duplicator_details_page_backups_tab_url', self::getInstance()->getMenuLink(), $package ); -
/** * Filter whether the details page shows the Download menu */ apply_filters( 'duplicator_details_page_show_download', $result, $package ); -
/** * Filter whether the details page shows the Transfer tab */ apply_filters( 'duplicator_details_page_show_transfer', CapMng::can(CapMng::CAP_CREATE, false), $package ); -
/** * Filter whether the details section shows the Transfer button */ apply_filters( 'duplicator_details_section_show_transfer', CapMng::can(CapMng::CAP_STORAGE, false), $package ); -
/** * Filter to disable the onboarding redirect. */ apply_filters( 'duplicator_disable_onboarding_redirect', false ); -
/** * Action fired after the cloud storage settings section. Used by ProBase to * inject auto-activate logic after license activation. */ do_action( 'duplicator_dupcloud_after_settings', $storage ); -
/** * Action to inject additional connect buttons before the token connection. */ do_action( 'duplicator_dupcloud_connect_buttons', $storage ); -
/** * Filters the list of plugin basenames to force-activate after restoration. */ apply_filters( 'duplicator_force_activate_plugins', $default ); -
/** * Filter to allow addons to add extra data to migration data. */ apply_filters( 'duplicator_installer_migrate_data_extra', [], $overwriteData ); -
/** * Whether WordPress Multisite is supported. */ apply_filters( 'duplicator_multisite_supported', false ); -
/** * Filters the data passed to the multisite-unsupported notice template. The * button is rendered only when both buttonUrl and buttonLabel are non-empty. */ apply_filters( 'duplicator_multisite_unsupported_notice', $defaults ); -
/** * Filter whether the Backup screens offer Delete and the delete endpoint * accepts the Backup */ apply_filters( 'duplicator_package_allow_user_delete', CapMng::can(CapMng::CAP_CREATE, false), $package ); -
/** * Filter the Status column legend entries. Addons append their own; a missing * `section` key places the entry in the last section. */ apply_filters( 'duplicator_package_flags_legend', $entries ); -
/** * Filter aggregated tooltip groups for the package flags cell. */ apply_filters( 'duplicator_package_flags_tooltip_groups', $groups, $package ); -
/** * Filter the origin group of a package. Addons return the group for the * execution types they own and pass the incoming value through otherwise. */ apply_filters( 'duplicator_package_origin_group', $origin, $package ); -
/** * Filter the Backup box sections, rendered sequentially inside the box. */ apply_filters( 'duplicator_package_setup_filter_sections', [ 'filters' => [ 'label' => '', 'class' => 'filter-files-tab', 'callback' => function () use ($tplMng): void { $tplMng->render('parts/packages/filters/section_filters_subtab_filters_files'); }, ], ] ); -
/** * Add variant-owned identity fields to the telemetry envelope. */ apply_filters( 'duplicator_telemetry_identity', $identity ); -
/** * Hook for addons to enrich the snapshot with their own counters. */ apply_filters( 'duplicator_telemetry_snapshot', $base ); -
/** * Add provider-owned `storages_*_count` metrics. */ apply_filters( 'duplicator_telemetry_storage_metrics', $result, $items ); -
/** * Filter what an assistant can do with backups, one sentence per item with its * keywords in <b>. */ apply_filters( 'duplicator_tools_ai_abilities', [ __('<b>List</b> recent backups with their name, date, status and size.', 'duplicator'), __('<b>Create</b> a backup of the whole site or only the database.', 'duplicator'), __('<b>Check the progress</b> of a backup until it completes.', 'duplicator'), __('<b>Cancel</b> a backup being created or transferred.', 'duplicator'), __('<b>Transfer</b> a complete backup to a storage, or back from one.'... ); -
/** * Filter the groups of what an assistant can do, by key: a title and sentences * with <b> keywords */ apply_filters( 'duplicator_tools_ai_ability_groups', array_merge( [ 'backups' => [ 'title' => __('Backups', 'duplicator'), 'items' => $backupAbilities, ], ], $entityAbilities, [ 'autotune' => [ 'title' => __('AutoTune', 'duplicator'), 'items' => [ __('<b>Check</b> AutoTune: the test backups it ran and the build settings it chose.', 'duplicator'), __('<b>Start</b> AutoTune when allowed in the settings, and <b>abort</b> it.', 'duplicator'), ], ], '... ); -
pre_uninstall_plugin
action/** * Fires in uninstall_plugin() immediately before the plugin is uninstalled. */ do_action( 'pre_uninstall_plugin', $this->slug, $uninstallable_plugins ); -
uninstall_{$pluginFile}
action/** * Fires in uninstall_plugin() once the plugin has been uninstalled. */ do_action( "uninstall_{$pluginFile}" ); -
apply_filters( 'duplicator_default_uninstall_cleanup', true ); -
do_action( "duplicator_after_render_page_{$this->pageSlug}", $this->getCurrentMenuSlugs(), $this->getCurrentInnerPage() ); -
do_action( 'duplicator_after_update_crypt_setting' ); -
do_action( "duplicator_before_render_page_{$this->pageSlug}", $this->getCurrentMenuSlugs(), $this->getCurrentInnerPage() ); -
do_action( 'duplicator_before_update_crypt_setting' ); -
do_action( 'duplicator_details_page_count_after', $package, 'tables' ); -
do_action( 'duplicator_details_section_count_before', $package, 'files' ); -
apply_filters( 'duplicator_installer_license_string', 'unknown' ); -
duplicator_is_protected_path
filterapply_filters( 'duplicator_is_protected_path', false, $migrationData->archivePath ); -
do_action( 'duplicator_package_after_delete', $this->ID ); -
do_action( 'duplicator_package_after_set_status', $this, $status ); -
apply_filters( 'duplicator_package_row_classes', $rowClasses, $package ); -
do_action( 'duplicator_packages_after_bulk_delete', $ids ); -
apply_filters( "duplicator_page_title_{$this->pageSlug}", $this->pageTitle ); -
do_action( "duplicator_render_page_content_{$this->pageSlug}", $this->getCurrentMenuSlugs(), $this->getCurrentInnerPage() ); -
duplicator_stored_version
filterapply_filters( 'duplicator_stored_version', $raw ); -
do_action( 'duplicator_template_after_set_from_post', $this, $input ); -
do_action( 'autoptimize_action_cachepurged' ); -
bs_cache_purge_cache
actiondo_action( 'bs_cache_purge_cache' ); -
ce_clear_cache
actiondo_action( 'ce_clear_cache' ); -
duplicator_addons_loaded
actiondo_action( 'duplicator_addons_loaded' ); -
apply_filters( 'duplicator_admin_notice_dismiss', null, $noticeToDismiss ); -
duplicator_admin_notices
filterapply_filters( 'duplicator_admin_notices', $notices ); -
duplicator_after_activation
actiondo_action( 'duplicator_after_activation', $oldVariant, $oldVersion, $newVariant, $newVersion ); -
do_action( 'duplicator_after_deactivation' ); -
do_action( 'duplicator_after_migration_settings_update', $migrationData ); -
do_action( 'duplicator_after_restore_flags_update', $migrationData ); -
do_action( "duplicator_after_run_actions_{$this->pageSlug}", $isActionCalled ); -
duplicator_after_scan_report
actiondo_action( 'duplicator_after_scan_report', $this, $report ); -
do_action( 'duplicator_after_storage_create', $id ); -
do_action( 'duplicator_after_storage_delete', $id ); -
do_action( 'duplicator_after_storage_list' ); -
duplicator_archive_config
filterapply_filters( 'duplicator_archive_config', $ac, $this->Package ); -
duplicator_backup_build_step
actiondo_action( 'duplicator_backup_build_step', $it->current(), $this, [$it, 'stop'] ); -
apply_filters( 'duplicator_backup_create_log_data', $this->data, $package ); -
do_action( 'duplicator_backup_create_log_extra_fields', $this->data ); -
do_action( 'duplicator_backup_installer_section_before', $template ); -
do_action( 'duplicator_backups_page_header_after' ); -
do_action( 'duplicator_before_packages_table_action' ); -
do_action( "duplicator_before_run_actions_{$this->pageSlug}" ); -
do_action( 'duplicator_before_scan_report', $this ); -
do_action( 'duplicator_build_before_start', $this ); -
duplicator_build_completed
actiondo_action( 'duplicator_build_completed', $this ); -
do_action( 'duplicator_build_database_before_start', $this->Package ); -
do_action( 'duplicator_build_database_completed', $this->Package ); -
do_action( 'duplicator_build_database_start', $this->Package ); -
apply_filters( 'duplicator_build_expected_filecount', $expected_filecount, $this ); -
duplicator_build_fail
actiondo_action( 'duplicator_build_fail', $this, $previousStatus, $exception ); -
duplicator_build_next_step
filterapply_filters( 'duplicator_build_next_step', $current, $this->package ); -
apply_filters( 'duplicator_build_requirement_checks', $checks ); -
duplicator_build_start
actiondo_action( 'duplicator_build_start', $this ); -
duplicator_capability_labels
filterapply_filters( 'duplicator_capability_labels', $labels ); -
apply_filters( 'duplicator_capability_update_users', $this->capabilities[$cap], $data, $cap ); -
duplicator_certificate_path
filterapply_filters( 'duplicator_certificate_path', DUPLICATOR____PATH . '/src/Libs/Certificates/cacert.pem' ); -
apply_filters( 'duplicator_component_action_from_components', '', $components ); -
apply_filters( 'duplicator_component_action_icon', '', $componentAction ); -
apply_filters( 'duplicator_component_action_label', '', $componentAction ); -
apply_filters( 'duplicator_component_preset_actions', $actions ); -
duplicator_daily_actions
actiondo_action( 'duplicator_daily_actions' ); -
do_action( 'duplicator_dashboard_widget_after_sections' ); -
do_action( 'duplicator_dashboard_widget_sections' ); -
apply_filters( 'duplicator_database_dumped_tables_to_discard', [], $this->Package ); -
apply_filters( 'duplicator_database_tables_to_dump', $tablesToProcess, $this->Package ); -
apply_filters( 'duplicator_database_track_table_checksums', false, $this->Package ); -
apply_filters( 'duplicator_default_usage_tracking', false ); -
apply_filters( 'duplicator_deploy_folders_to_check', $result ); -
apply_filters( 'duplicator_deploy_overwrite_params', $params ); -
apply_filters( 'duplicator_deploy_same_server_only', false ); -
apply_filters( 'duplicator_detected_web_server', $detected ); -
do_action( 'duplicator_dup_cloud_rate_limit_error', $url, $retryAfter ); -
apply_filters( 'duplicator_dynamic_data_skip_reset', [self::PACKAGE_CHECK_TS_KEY] ); -
apply_filters( 'duplicator_dynamic_skip_data_export', [ self::PACKAGE_CHECK_TS_KEY, ] ); -
do_action( 'duplicator_email_summary_extra_sections' ); -
apply_filters( 'duplicator_email_summary_new_entity_messages', $newEntityMessages ); -
duplicator_endpoints
filterapply_filters( 'duplicator_endpoints', $basicRestPoints ); -
apply_filters( 'duplicator_force_database_prefix_filter', false ); -
apply_filters( 'duplicator_ftp_connect_exists', self::functionExists('ftp_connect') ); -
apply_filters( 'duplicator_global_dir_filters', $dirFiltersLits ); -
apply_filters( 'duplicator_global_file_filters', $fileFiltersLits ); -
apply_filters( 'duplicator_godaddy_host_check', file_exists(WPMU_PLUGIN_DIR . '/gd-system-plugin.php') ); -
duplicator_help_page_context
filterapply_filters( 'duplicator_help_page_context', '', $page, $innerPage ); -
apply_filters( 'duplicator_help_tools_context', 'tools', $tab, $innerPage ); -
duplicator_host_check
filterapply_filters( 'duplicator_host_check', file_exists(self::getFlywheelMainPluginPaht()), self::getIdentifier() ); -
do_action( 'duplicator_import_settings_checkboxes' ); -
apply_filters( 'duplicator_index_protected_paths', $paths ); -
do_action( 'duplicator_installer_after_cleanup_packages' ); -
do_action( 'duplicator_installer_after_header_main' ); -
apply_filters( 'duplicator_installer_extra_files', $result, $this->Package ); -
do_action( 'duplicator_installer_extra_files_indexed', $indexManager, $this->Package ); -
apply_filters( 'duplicator_installer_include_static_paths', true, $this->Package ); -
apply_filters( 'duplicator_installer_install_type_accepted_values', $acceptValues, $archiveConfig, $overwriteData ); -
apply_filters( 'duplicator_installer_install_type_note', $note, $option ); -
apply_filters( 'duplicator_is_shellzip_available', Shell::test() ); -
apply_filters( 'duplicator_liquidweb_host_check', file_exists(WPMU_PLUGIN_DIR . '/liquid-web.php') ); -
duplicator_lock_engines
filterapply_filters( 'duplicator_lock_engines', [ new SqlLock(), new FileLock(), ] ); -
apply_filters( 'duplicator_loopback_probe_marker_present', $isPresent, $code ); -
do_action( 'duplicator_manual_transfer_start', $package, $transferOffset ); -
apply_filters( 'duplicator_name_format_result', $parsed ); -
duplicator_name_format_tags
filterapply_filters( 'duplicator_name_format_tags', $tags ); -
apply_filters( 'duplicator_overwrite_params_data', $this->getPrefillParams() ); -
do_action( 'duplicator_package_before_set_status', $this, $status ); -
do_action( 'duplicator_package_before_watchdog_checks', $active_package ); -
do_action( 'duplicator_package_components_after_presets' ); -
apply_filters( 'duplicator_package_components_from_input', $components, $input ); -
do_action( 'duplicator_package_detail_actions', $package ); -
do_action( 'duplicator_package_detail_installer_rows', $package ); -
do_action( 'duplicator_package_flags_icons', $package ); -
do_action( 'duplicator_package_general_area_after', $manual_template ); -
do_action( 'duplicator_package_set_from_template', $this, $template ); -
do_action( 'duplicator_package_setup_status_icons', $template ); -
do_action( 'duplicator_package_transfer_completed', $this ); -
apply_filters( 'duplicator_package_type_string', $typeString, $package ); -
apply_filters( 'duplicator_package_update_flags', $this->flags, $this ); -
do_action( 'duplicator_packages_page_scripts' ); -
do_action( 'duplicator_packages_toolbar_buttons' ); -
apply_filters( "duplicator_page_actions_{$this->pageSlug}", [] ); -
apply_filters( "duplicator_page_template_data_{$this->pageSlug}", $tplMng->getGlobalData() ); -
apply_filters( 'duplicator_pantheon_host_check', file_exists(WPMU_PLUGIN_DIR . '/pantheon.php') ); -
apply_filters( 'duplicator_privileges_to_show_create_func', $privileges_to_show_create_func ); -
do_action( 'duplicator_pro_after_storage_form' ); -
do_action( 'duplicator_register_activity_log_types' ); -
do_action( 'duplicator_register_storage_types' ); -
duplicator_register_types
actiondo_action( 'duplicator_register_types' ); -
apply_filters( 'duplicator_requirement_php_64bit', PHP_INT_SIZE >= 8 ); -
apply_filters( 'duplicator_run_server_detection', true ); -
do_action( 'duplicator_runner_pre_process' ); -
duplicator_scan_header
actiondo_action( 'duplicator_scan_header' ); -
duplicator_scan_report
filterapply_filters( 'duplicator_scan_report', $report, $this ); -
do_action( 'duplicator_scan_setup_wordpress_multisite' ); -
do_action( 'duplicator_scan_system_checks' ); -
apply_filters( 'duplicator_settings_change_sub_type_labels', $labels ); -
apply_filters( 'duplicator_settings_export_data', $exportData ); -
do_action( 'duplicator_settings_general_before' ); -
do_action( 'duplicator_settings_import_data', $import_data, $version, $storage_map, $template_map, $opts ); -
apply_filters( 'duplicator_settings_import_opts', $opts ); -
do_action( 'duplicator_storage_after_delete_cleanup', $id ); -
apply_filters( 'duplicator_storage_select_list_type_suffix', '', $storage ); -
apply_filters( 'duplicator_storage_type_class', $class, $type, $data ); -
apply_filters( 'duplicator_stored_install_info', $installInfo ); -
apply_filters( "duplicator_sub_level_default_tab_{$this->pageSlug}", false, $parent ); -
duplicator_support_url
filterapply_filters( 'duplicator_support_url', 'https://wordpress.org/support/plugin/duplicator/' ); -
apply_filters( 'duplicator_telemetry_event_fields', $fields, $eventType, $eventSubType, $context ); -
apply_filters( 'duplicator_telemetry_is_eligible', true ); -
do_action( 'duplicator_telemetry_package_build', $package, $action ); -
duplicator_template_file
filterapply_filters( 'duplicator_template_file', $this->mainFolder . $slugTpl . '.php', $slugTpl ); -
do_action( 'duplicator_tools_ai_abilities_group_end', (string) $groupKey ); -
do_action( 'duplicator_tools_ai_abilities_list_end' ); -
duplicator_tools_ai_cta
actiondo_action( 'duplicator_tools_ai_cta' ); -
do_action( 'duplicator_transfer_cancelled', $this ); -
duplicator_transfer_failed
actiondo_action( 'duplicator_transfer_failed', $this, $failure ); -
apply_filters( 'duplicator_undefined_default_variant', '' ); -
do_action( 'duplicator_update_global_storage_settings' ); -
duplicator_upgrade
actiondo_action( 'duplicator_upgrade', $oldVariant, $oldVersion, $newVariant, $newVersion ); -
apply_filters( 'duplicator_upgrade_entity_classes', $listEntityClasses ); -
duplicator_upload_complete
actiondo_action( 'duplicator_upload_complete', $upload_info ); -
apply_filters( 'duplicator_validate_upload_info_data', $errors, $this, $storageId, $isDownload ); -
apply_filters( 'duplicator_wordpress_host_check', file_exists(WPMU_PLUGIN_DIR . '/wpcomsh-loader.php') ); -
apply_filters( 'duplicator_wp_engine_host_check', (strpos($serverinfo, "WPENGINE_ACCOUNT") !== false) ); -
editable_roles
filterapply_filters( 'editable_roles', wp_roles()->roles ); -
enable_maintenance_mode
filterapply_filters( 'enable_maintenance_mode', true, $upgrading ); -
litespeed_purge_all
actiondo_action( 'litespeed_purge_all' ); -
rt_nginx_helper_purge_all
actiondo_action( 'rt_nginx_helper_purge_all' ); -
swcfpc_purge_everything
actiondo_action( 'swcfpc_purge_everything' ); -
wphb_clear_page_cache
actiondo_action( 'wphb_clear_page_cache' ); -
wpo_cache_flush
actiondo_action( 'wpo_cache_flush' );
Generated from Duplicator's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: