Easy Demo Importer 2.0.2 has 27 actions and 67 filters, read directly from its source code on Nov 18, 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 Easy Demo Importer fires an action
add_action( 'sd/edi/before_import', function( $xmlFile, $object ) {
// Your code runs here.
}, 10, 2 );
// Change a value Easy Demo Importer is about to use
add_filter( 'import_term_meta_key', function( $meta, $term_id, $term ) {
// Change $meta here.
return $meta;
}, 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
-
/** * Action Hook: 'sd/edi/before_import' */ do_action( 'sd/edi/before_import', $xmlFile, $this ); -
/** * This action is documented in finalizeImport(). */ do_action( 'sd/edi/after_content_import', $xmlFile, $this ); -
/** * Fires after term meta is imported. */ do_action( 'import_term_meta', $term_id, $key, $value ); -
/** * Filters the meta key for an imported piece of term meta. */ apply_filters( 'import_term_meta_key', $meta['key'], $term_id, $term ); -
/** * Action Hook: 'sd/edi/after_customizer_import' */ do_action( 'sd/edi/after_customizer_import', $customizerFilePath ); -
/** * Action Hook: 'sd/edi/after_import' */ do_action( 'sd/edi/after_import', $this ); -
/** * Action Hook: 'sd/edi/after_plugin_activation' */ do_action( 'sd/edi/after_plugin_activation', $path ); -
/** * Action Hook: 'sd/edi/after_plugins_activation' */ do_action( 'sd/edi/after_plugins_activation', $this ); -
/** * Action Hook: 'sd/edi/after_widgets_import' */ do_action( 'sd/edi/after_widgets_import', $widgetsFilePath ); -
/** * Action Hook: 'sd/edi/before_customizer_import' */ do_action( 'sd/edi/before_customizer_import', $customizerFilePath ); -
/** * Action Hook: 'sd/edi/before_plugin_activation' */ do_action( 'sd/edi/before_plugin_activation', $path ); -
/** * Action Hook: 'sd/edi/before_widgets_import' */ do_action( 'sd/edi/before_widgets_import', $widgetsFilePath ); -
/** * Filter: 'sd/edi/cleanup_demo_files' */ apply_filters( 'sd/edi/cleanup_demo_files', true, $this->demoSlug ); -
/** * Action Hook: 'sd/edi/importer_init' */ do_action( 'sd/edi/importer_init', $this ); -
/** * Filter ID of the existing post corresponding to post currently importing. */ apply_filters( 'wp_import_existing_post', $post_exists, $post ); -
/** * Filters the metadata attached to an imported term. */ apply_filters( 'wp_import_term_meta', $term['termmeta'], $term_id, $term ); -
apply_filters( 'sd/edi/lock_ttl', 30 * MINUTE_IN_SECONDS ); -
do_action( 'import_start' ); -
apply_filters( 'sd/edi/download_sslverify', true ); -
apply_filters( 'sd/edi/download_timeout', 300 ); -
apply_filters( 'sd/edi/interrupted_after_seconds', 2 * MINUTE_IN_SECONDS ); -
do_action( 'cache_enabler_clear_complete_cache' ); -
apply_filters( 'import_attachment_size_limit', 0 ); -
do_action( 'import_end' ); -
do_action( 'import_post_meta', $post_id, $key, $value ); -
apply_filters( 'import_post_meta_key', $meta['key'], $post_id, $post ); -
do_action( 'litespeed_purge_all' ); -
apply_filters( 'sd/edi/admin/deactivation_notice', false ); -
apply_filters( 'sd/edi/allowed_download_domains', [] ); -
apply_filters( 'sd/edi/config/no_demo', [ 'text' => esc_html__( 'We apologize for any inconvenience, but it appears that the configuration file for the demo importer is either missing or you are using an unsupported theme. As a result, the installation of the demo content cannot proceed any further at this time. Thank you for your understanding.', 'easy-demo-importer' ), 'btnUrl' => '', 'btnText' => '', ] ); -
apply_filters( 'sd/edi/db_search/tables', [ $wpdb->prefix . 'commentmeta', $wpdb->prefix . 'comments', $wpdb->prefix . 'fluentform_forms', $wpdb->prefix . 'options', $wpdb->prefix . 'postmeta', $wpdb->prefix . 'posts', ] ); -
apply_filters( 'sd/edi/disabled_elementor_options', false ); -
apply_filters( 'sd/edi/elementor_post_types_support', array_diff( array_merge( $defaultPostTypes, array_keys( $customPostTypes ) ), $excludedPostTypes ) ); -
apply_filters( 'sd/edi/enable_chunked_import', true ); -
do_action( 'sd/edi/flush_caches' ); -
apply_filters( 'sd/edi/import_chunk_posts', 5 ); -
apply_filters( 'sd/edi/import_chunk_seconds', 10 ); -
apply_filters( 'sd/edi/import_modal_texts', [ 'stepOne' => [ 'introTopText' => esc_html__( 'We recommend creating a restore point before you proceed — enable it on the next step to roll your site back if anything goes wrong. A separate backup plugin can add an extra layer of safety.', 'easy-demo-importer' ), 'introBottomText' => esc_html__( 'This import installs the required plugins and brings in content, media, settings, customizer da... ); -
apply_filters( 'sd/edi/import_posts_chunk_size', self::DEFAULT_POSTS_CHUNK_SIZE ); -
apply_filters( 'sd/edi/import/max_svg_file_size', 500 * 1024 ); -
apply_filters( 'sd/edi/importer/attachment_referer', $this->base_url ); -
apply_filters( 'sd/edi/importer/attachment_request_args', [ 'timeout' => (int) apply_filters( 'sd/edi/importer/attachment_timeout', 40 ), 'stream' => true, 'filename' => $tmp_file_name, 'user-agent' => apply_filters( 'sd/edi/importer/attachment_user_agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36' ), 'headers' => [ 'Accept-Encoding' => 'identity', 'Referer' => apply_filters( 'sd/... ); -
apply_filters( 'sd/edi/importer/attachment_timeout', 40 ); -
apply_filters( 'sd/edi/importer/attachment_user_agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36' ); -
apply_filters( 'sd/edi/importer/bundled_media_enabled', is_dir( $dir ), $this->demoSlug, $this->config ); -
apply_filters( 'sd/edi/importer/bundled_media_path', $found, $url, $this->bundled_media_dir ); -
apply_filters( 'sd/edi/importer/config', [] ); -
apply_filters( 'sd/edi/importer/non_unique_post_types', [ 'rtcl_cf' ] ); -
apply_filters( 'sd/edi/initialized_classes', $this->services ); -
apply_filters( 'sd/edi/log_max_runs', $maxRuns ); -
apply_filters( 'sd/edi/log_runs_entry_ceiling', 5000 ); -
apply_filters( 'sd/edi/manual_artifact_ttl', 6 * HOUR_IN_SECONDS ); -
apply_filters( 'sd/edi/manual_upload_max_bytes', 512 * MB_IN_BYTES ); -
apply_filters( 'sd/edi/plugin_activation_actions', [ 'woocommerce/woocommerce.php' => [ 'class' => '\WC_Install', 'action' => 'install', ], 'fluentform/fluentform.php' => [ 'class' => '\FluentForm\Database\DBMigrator', 'action' => 'run', ], ] ); -
do_action( 'sd/edi/plugin_loaded' ); -
apply_filters( 'sd/edi/plugin_meta_data', $this->getPluginMetaData() ); -
apply_filters( 'sd/edi/plugin_requirements', [ 'php' => $this->plugin->requiredPhp(), 'wp' => $this->plugin->requiredWp(), ] ); -
apply_filters( 'sd/edi/regen_chunk_seconds', 10 ); -
apply_filters( 'sd/edi/regen_tool_seconds', 15 ); -
apply_filters( 'sd/edi/registered_admin_scripts', $scripts, 10, 1 ); -
apply_filters( 'sd/edi/registered_admin_styles', $styles, 10, 1 ); -
apply_filters( 'sd/edi/remove_tab_and_search', false ); -
apply_filters( 'sd/edi/retry_chunk_seconds', 20 ); -
apply_filters( 'sd/edi/server_requirements', [ 'max_execution_time' => '300', 'max_input_time' => '300', 'upload_max_filesize' => '256M', 'post_max_size' => '512M', 'memory_limit' => '256M', ] ); -
apply_filters( 'sd/edi/snapshot_exclude_tables', [ 'users', 'usermeta', ImportLogger::TABLE ] ); -
apply_filters( 'sd/edi/snapshot_max_media_files', 50000 ); -
apply_filters( 'sd/edi/snapshot_max_rows', 500000 ); -
apply_filters( 'sd/edi/support_button', 'yes' ); -
apply_filters( 'sd/edi/supported_themes', [ ! empty( $this->getDemoConfig()['themeSlug'] ) ? esc_html( $this->getDemoConfig()['themeSlug'] ) : '', ] ); -
apply_filters( 'sd/edi/temp_boost_max_execution_time', 300 ); -
apply_filters( 'sd/edi/temp_boost_memory_limit', '350M' ); -
apply_filters( 'sd/edi/url_backfill_batch_size', 100 ); -
do_action( 'wie_after_widget_import', $afterWidgetImport ); -
apply_filters( 'wie_widget_settings', $widget ); -
apply_filters( 'wie_widget_settings_array', $widget ); -
apply_filters( 'wp_import_categories', $this->categories ); -
do_action( 'wp_import_insert_comment', $inserted_comments[ $key ], $comment, $comment_post_id, $post ); -
do_action( 'wp_import_insert_post', $post_id, $original_post_id, $postdata, $post ); -
do_action( 'wp_import_insert_term', $t, $term, $post_id, $post ); -
do_action( 'wp_import_insert_term_failed', $t, $term, $post_id, $post ); -
apply_filters( 'wp_import_post_comments', $post['comments'], $post_id, $post ); -
apply_filters( 'wp_import_post_data_processed', $postdata, $post ); -
apply_filters( 'wp_import_post_data_raw', $post ); -
do_action( 'wp_import_post_exists', $post ); -
apply_filters( 'wp_import_post_meta', $post['postmeta'], $post_id, $post ); -
apply_filters( 'wp_import_post_terms', $post['terms'], $post_id, $post ); -
apply_filters( 'wp_import_posts', $this->posts ); -
do_action( 'wp_import_set_post_terms', $tt_ids, $ids, $tax, $post_id, $post ); -
apply_filters( 'wp_import_tags', $this->tags ); -
apply_filters( 'wp_import_terms', $this->terms ); -
do_action( 'wphb_clear_page_cache' );
Generated from Easy Demo Importer's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: