WP Migrate Lite 2.7.12 has 25 actions and 123 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 WP Migrate Lite fires an action
add_action( 'wpmdb_post_process_table_data', function( $table, $target_table_name ) {
// Your code runs here.
}, 10, 2 );
// Change a value WP Migrate Lite is about to use
add_filter( 'wpmdb_replace_destination_protocol', function( $value, $destination_url ) {
// Change $value here.
return $value;
}, 10, 2 );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
-
/** * Fires just after processing the data for a table. */ do_action( 'wpmdb_post_process_table_data', $table, $target_table_name ); -
wpmdb_pre_process_table_data
action/** * Fires just before processing the data for a table. */ do_action( 'wpmdb_pre_process_table_data', $table, $target_table_name, $temp_table_name ); -
/** * Filters $do_protocol_replace, return false to prevent protocol replacement. */ apply_filters( 'wpmdb_replace_destination_protocol', true, $destination_url ); -
wpmdb_replace_site_urls
filter/** * Filters the site_urls used to check if there is a protocol mismatch. */ apply_filters( 'wpmdb_replace_site_urls', $wpmdb_home_urls ); -
wpmdb_migration_complete
actiondo_action( 'wpmdb_migration_complete' ); -
wpmdb_alter_table_name
filterapply_filters( 'wpmdb_alter_table_name', $wpdb->base_prefix . 'wpmdb_alter_statements' ); -
wpmdb_before_response
filterapply_filters( 'wpmdb_before_response', $return ); -
wpmdb_cancellation
actiondo_action( 'wpmdb_cancellation' ); -
apply_filters( 'wpmdb_recursive_scan_bottleneck', self::BOTTLENECK ); -
apply_filters( 'wpmdb_theoretical_transfer_bottleneck', 0 ); -
apply_filters( 'reactwpscripts.is_development', $env ); -
wp_migrate_db_cli_after_load
actiondo_action( 'wp_migrate_db_cli_after_load' ); -
do_action( 'wp_migrate_db_cli_before_load' ); -
do_action( 'wp_migrate_db_remove_compatibility_plugin' ); -
wp_queue_connections
filterapply_filters( 'wp_queue_connections', $connections ); -
apply_filters( 'wp_queue_cron_memory_exceeded', $return ); -
wp_queue_cron_time_exceeded
filterapply_filters( 'wp_queue_cron_time_exceeded', $return ); -
wp_queue_cron_time_limit
filterapply_filters( 'wp_queue_cron_time_limit', 20 ); -
wpmdb_abort_utf8mb4_to_utf8
filterapply_filters( 'wpmdb_abort_utf8mb4_to_utf8', $abort_utf8mb4 ); -
apply_filters( 'wpmdb_accepted_profile_fields', $this->accepted_fields ); -
apply_filters( "wpmdb_addon_registered_{$addon}", false ); -
do_action( 'wpmdb_after_finalize_migration' ); -
apply_filters( 'wpmdb_after_replace_custom_data', $data, $before_fired, $this ); -
wpmdb_after_response
filterapply_filters( 'wpmdb_after_response', trim($response['body'], "\xef\xbb\xbf") ); -
wpmdb_after_schema_update
actiondo_action( 'wpmdb_after_schema_update', $schema_version ); -
apply_filters( 'wpmdb_after_strip_invalid_text_from_query', $query, $fallback ); -
wpmdb_ajax_cap
filterapply_filters( 'wpmdb_ajax_cap', $cap ); -
wpmdb_alter_data_queries
filterapply_filters( 'wpmdb_alter_data_queries', $alter_data_queries, $table_to_stow, $state_data['intent'], $state_data['stage'] ); -
apply_filters( 'wpmdb_backup_header_included_tables', $included_tables ); -
apply_filters( 'wpmdb_backup_header_is_subsite_export', 'false' ); -
wpmdb_backup_header_url
filterapply_filters( 'wpmdb_backup_header_url', Util::home_url() ); -
apply_filters( 'wpmdb_before_finalize_migration', true, $this ); -
wpmdb_before_remote_post
actiondo_action( 'wpmdb_before_remote_post' ); -
apply_filters( 'wpmdb_before_replace_custom_data', array( $data, $before_fired, $successive_filter, ), $this ); -
wpmdb_before_schema_update
actiondo_action( 'wpmdb_before_schema_update', $schema_version ); -
apply_filters( 'wpmdb_before_strip_invalid_text_from_query', $query ); -
wpmdb_bottleneck
filterapply_filters( 'wpmdb_bottleneck', $calculated_bottleneck ); -
wpmdb_bottleneck_dir_scan
filterapply_filters( 'wpmdb_bottleneck_dir_scan', false ); -
apply_filters( 'wpmdb_check_table_column_for_reference', $table_column_for_check ); -
do_action( 'wpmdb_cli_after_finalize_migration', $this->profile, $this->migration ); -
do_action( 'wpmdb_cli_before_finalize_migration', $this->profile, $this->migration ); -
do_action( 'wpmdb_cli_before_initiate_migration', $this->profile ); -
do_action( 'wpmdb_cli_before_migrate_tables', $this->profile, $this->migration ); -
wpmdb_cli_before_migration
actiondo_action( 'wpmdb_cli_before_migration', $this->post_data, $this->profile ); -
do_action( 'wpmdb_cli_during_cli_migration', $this->post_data, $this->profile ); -
apply_filters( 'wpmdb_cli_filter_before_cli_initiate_migration', $this->profile, $this->post_data ); -
apply_filters( 'wpmdb_cli_filter_before_migrate_tables', array( 'tables' => $tables, 'stage_iterator' => $stage_iterator, ) ); -
apply_filters( 'wpmdb_cli_filter_before_migration', $this->profile, $this->post_data ); -
apply_filters( 'wpmdb_cli_filter_get_extra_args', $known_args ); -
apply_filters( 'wpmdb_cli_filter_get_profile_data_from_args', $profile, $args, $assoc_args ); -
apply_filters( 'wpmdb_cli_filter_source_tables', $this->table->get_tables(), $this->profile ); -
wpmdb_cli_finalize_migration
filterapply_filters( 'wpmdb_cli_finalize_migration', true, $this->profile, $this->migration ); -
apply_filters( 'wpmdb_cli_finalize_migration_args', $this->post_data, $this->profile, $this->migration ); -
apply_filters( 'wpmdb_cli_finalize_migration_response', null, $this->post_data ); -
apply_filters( 'wpmdb_cli_get_row_counts_from_table_list', $local_table_rows, $stage ); -
apply_filters( 'wpmdb_cli_initiate_migration_args', $migration_args, $this->profile ); -
apply_filters( 'wpmdb_cli_initiate_migration_response', $initiate_migration_response ); -
wpmdb_cli_migrate_table_args
filterapply_filters( 'wpmdb_cli_migrate_table_args', $args, $this->profile, $this->migration ); -
apply_filters( 'wpmdb_cli_migrate_table_response', $migrate_table_response, $_POST, $this->profile, $this->migration ); -
apply_filters( 'wpmdb_cli_profile_before_migration', $profile ); -
wpmdb_cli_progress_label
filterapply_filters( 'wpmdb_cli_progress_label', $progress_label, $stage, $tables ); -
wpmdb_cli_tables_to_migrate
filterapply_filters( 'wpmdb_cli_tables_to_migrate', $tables_to_migrate, $this->profile, $this->migration ); -
apply_filters( 'wpmdb_compatibility_enable_theme', false ); -
apply_filters( 'wpmdb_compatibility_mode_api_endpoints', [ 'initiate-migration', 'verify-connection', 'finalize-migration', 'cancel-migration', 'mf-initiate-file-migration', 'mf-get-queue-items', 'mf-transfer-files', 'tpf-initiate-file-migration', 'tpf-get-queue-items', 'tpf-transfer-files', 'prepare-upload', 'upload-file', 'import-file', ] ); -
apply_filters( 'wpmdb_compatibility_plugin_whitelist', array() ); -
wpmdb_convert_to_520
filterapply_filters( 'wpmdb_convert_to_520', true ); -
apply_filters( 'wpmdb_create_alter_table_query', $this->create_alter_table_query ); -
wpmdb_create_table_query
filterapply_filters( 'wpmdb_create_table_query', $create_table[0][1], $table_to_stow, $this->dynamic_props->target_db_version, $state_data['intent'], $state_data['stage'] ); -
wpmdb_data
filterapply_filters( 'wpmdb_data', $site_details_extended ); -
apply_filters( 'wpmdb_default_remote_post_timeout', 60 * 20 ); -
wpmdb_diagnostic_info
filterapply_filters( 'wpmdb_diagnostic_info', array(), $diagnostic_info ); -
wpmdb_domain_replaces
filterapply_filters( 'wpmdb_domain_replaces', $domain_replaces ); -
wpmdb_error_migration
actiondo_action( 'wpmdb_error_migration', $error_message ); -
wpmdb_exclude_transients
filterapply_filters( 'wpmdb_exclude_transients', true ); -
wpmdb_export_filename
filterapply_filters( 'wpmdb_export_filename', sprintf('%s-%s',$dump_name, $datetime) ); -
wpmdb_export_honor_constant
filterapply_filters( 'wpmdb_export_honor_constant', $honor_const ); -
wpmdb_export_relative_path
filterapply_filters( 'wpmdb_export_relative_path', $relative_path, $state_data ); -
wpmdb_filtered_filters
filterapply_filters( 'wpmdb_filtered_filters', array( 'nonce_life', ) ); -
wpmdb_finalize_key_rules
filterapply_filters( 'wpmdb_finalize_key_rules', $key_rules ); -
wpmdb_finalize_migration
actiondo_action( 'wpmdb_finalize_migration', $state_data ); -
apply_filters( 'wpmdb_finalize_target_table_name', $table, $state_data ); -
wpmdb_find_and_replace
filterapply_filters( 'wpmdb_find_and_replace', $tmp_find_replace_pairs, $intent, $site_url ); -
wpmdb_frontend_assets_path
filterapply_filters( 'wpmdb_frontend_assets_path', WP_PLUGIN_DIR . '/wp-migrate-db' . $is_pro . '/frontend' ); -
wpmdb_get_alter_queries
filterapply_filters( 'wpmdb_get_alter_queries', $alter_queries, $state_data ); -
wpmdb_hide_{$notice}
filterapply_filters( "wpmdb_hide_{$notice}", false ); -
apply_filters( 'wpmdb_hide_set_time_limit_warning', false ); -
wpmdb_hosting_platform
filterapply_filters( 'wpmdb_hosting_platform', null ); -
wpmdb_initiate_key_rules
filterapply_filters( 'wpmdb_initiate_key_rules', array( 'action' => 'key', 'intent' => 'key', 'url' => 'url', 'key' => 'string', 'form_data' => 'json', 'stage' => 'key', 'stages' => 'json', 'nonce' => 'key', 'temp_prefix' => 'string', 'site_details' => 'json_array', 'export_dest' => 'string', 'import_info' => 'array', ), __FUNCTION__ ); -
wpmdb_initiate_migration
actiondo_action( 'wpmdb_initiate_migration', $state_data ); -
apply_filters( 'wpmdb_initiate_push_pull_post', $data, $state_data ); -
wpmdb_js_strings
filterapply_filters( 'wpmdb_js_strings', array( 'connection_info_missing' => __('The connection information appears to be missing, please enter it to continue.', 'wp-migrate-db'), 'connection_info_url_invalid' => __('The URL on the first line appears to be invalid, please check it and try again.', 'wp-migrate-db'), 'connection_info_key_invalid' => __('The secret key on the second line appears to be invalid. It should be a 40 character... ); -
wpmdb_json_replace_columns
filterapply_filters( 'wpmdb_json_replace_columns', [ 'post_content', 'post_content_filtered', ] ); -
wpmdb_json_replace_tables
filterapply_filters( 'wpmdb_json_replace_tables', $default_tables ); -
wpmdb_load_assets
actiondo_action( 'wpmdb_load_assets' ); -
wpmdb_load_frontend
actiondo_action( 'wpmdb_load_frontend' ); -
wpmdb_max_error_log_length
filterapply_filters( 'wpmdb_max_error_log_length', 1000000 ); -
apply_filters( 'wpmdb_max_individual_error_log_length', $max_log_length / 2.2 ); -
wpmdb_mf_excludes
filterapply_filters( 'wpmdb_mf_excludes', $excludes, $state_data ); -
apply_filters( 'wpmdb_mf_local_uploads_folder', $abs_path, $state_data ); -
wpmdb_mf_media_upload_path
filterapply_filters( 'wpmdb_mf_media_upload_path', WP_CONTENT_DIR . DIRECTORY_SEPARATOR . $uploads_name, $state_data ); -
apply_filters( 'wpmdb_mf_remote_uploads_folder', $folders, $state_data ); -
apply_filters( 'wpmdb_mf_remote_uploads_source_folder', $folder, $state_data ); -
wpmdb_new_path_current_site
filterapply_filters( 'wpmdb_new_path_current_site', $new_path_current_site ); -
wpmdb_nonces
filterapply_filters( 'wpmdb_nonces', array( 'migrate_table' => Util::create_nonce('migrate-table'), 'flush' => Util::create_nonce('flush'), 'track_usage' => Util::create_nonce('track-usage'), 'rest_nonce' => Util::create_nonce('wp_rest'), ) ); -
wpmdb_notices
actiondo_action( 'wpmdb_notices' ); -
wpmdb_notification_strings
filterapply_filters( 'wpmdb_notification_strings', [] ); -
wpmdb_overwrite_profile
filterapply_filters( 'wpmdb_overwrite_profile', $state_data['contents'] ); -
wpmdb_post_max_upper_size
filterapply_filters( 'wpmdb_post_max_upper_size', 26214400 ); -
wpmdb_post_types
filterapply_filters( 'wpmdb_post_types', array_values(array_unique($return)) ); -
apply_filters( 'wpmdb_pre_recursive_unserialize_replace', false, $data, $this ); -
wpmdb_preserved_options
filterapply_filters( 'wpmdb_preserved_options', $preserved_options, $intent ); -
wpmdb_preserved_options_data
filterapply_filters( 'wpmdb_preserved_options_data', $preserved_options_data, $intent ); -
apply_filters( 'wpmdb_preserved_sitemeta_options', $preserved_sitemeta_options, $intent ); -
apply_filters( 'wpmdb_preserved_sitemeta_options_data', $preserved_sitemeta_options_data, $intent ); -
apply_filters( 'wpmdb_process_column_as_binary', false, $struct ); -
wpmdb_process_column_as_bit
filterapply_filters( 'wpmdb_process_column_as_bit', false, $struct ); -
wpmdb_recent_profiles_limit
filterapply_filters( 'wpmdb_recent_profiles_limit', 10 ); -
wpmdb_replace_custom_data
filterapply_filters( 'wpmdb_replace_custom_data', array($data, true), $this ); -
apply_filters( 'wpmdb_replace_json_encode_flags', 0, $data, $this ); -
wpmdb_rows_join
filterapply_filters( 'wpmdb_rows_join', $join, $table ); -
wpmdb_rows_limit
filterapply_filters( 'wpmdb_rows_limit', $limit, $table ); -
wpmdb_rows_order_by
filterapply_filters( 'wpmdb_rows_order_by', $order_by, $table ); -
wpmdb_rows_per_segment
filterapply_filters( 'wpmdb_rows_per_segment', 100 ); -
wpmdb_rows_sql
filterapply_filters( 'wpmdb_rows_sql', $sql, $table ); -
wpmdb_rows_where
filterapply_filters( 'wpmdb_rows_where', $where, $table ); -
wpmdb_sensible_pull_limit
filterapply_filters( 'wpmdb_sensible_pull_limit', min(26214400, $this->settings['max_request']) ); -
wpmdb_settings_js
filterapply_filters( 'wpmdb_settings_js', $this->settings->get_settings_for_frontend() ); -
wpmdb_site_details
filterapply_filters( 'wpmdb_site_details', $site_details, $state_data ); -
apply_filters( 'wpmdb_skip_search_replace_tables', ['eum_logs'] ); -
wpmdb_subdomain_replace
filterapply_filters( 'wpmdb_subdomain_replace', true ); -
wpmdb_table_row
filterapply_filters( 'wpmdb_table_row', $row, $table, $state_data ); -
wpmdb_table_sizes
filterapply_filters( 'wpmdb_table_sizes', $return, 'regular' ); -
wpmdb_tables
filterapply_filters( 'wpmdb_tables', $clean_tables, $scope ); -
wpmdb_tables_to_backup
filterapply_filters( 'wpmdb_tables_to_backup', $tables_to_backup, $profile ); -
wpmdb_target_table_name
filterapply_filters( 'wpmdb_target_table_name', $table, $state_data, $site_details, $subsite_migration ); -
wpmdb_temporary_prefix
filterapply_filters( 'wpmdb_temporary_prefix', $this->props->temp_prefix ); -
wpmdb_tranfers_chunk_folder
filterapply_filters( 'wpmdb_tranfers_chunk_folder', WP_CONTENT_DIR . DIRECTORY_SEPARATOR ); -
apply_filters( 'wpmdb_tranfers_queue_batch_size', 1000 ); -
wpmdb_transfers_temp_dir
filterapply_filters( 'wpmdb_transfers_temp_dir', $temp_dir ); -
wpmdb_upload_dir_name
filterapply_filters( 'wpmdb_upload_dir_name', 'wp-migrate-db' ); -
wpmdb_upload_info
filterapply_filters( 'wpmdb_upload_info', array() ); -
wpmdbmf_file_batch_size
filterapply_filters( 'wpmdbmf_file_batch_size', 1000 ); -
do_action( 'wpmdbmf_file_transfer_complete' ); -
wpmdbmf_max_file_uploads
filterapply_filters( 'wpmdbmf_max_file_uploads', $max_file_uploads ); -
wpmdbtp_file_batch_size
filterapply_filters( 'wpmdbtp_file_batch_size', 1000 ); -
do_action( 'wpmdbtp_file_transfer_complete' ); -
wpmdbtp_max_file_uploads
filterapply_filters( 'wpmdbtp_max_file_uploads', $max_file_uploads ); -
wpmdbtp_plugin_list
filterapply_filters( 'wpmdbtp_plugin_list', ['wp-migrate-db'] );
Generated from WP Migrate Lite'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: