SKT Themes Demo Import 1.7 has 18 actions and 40 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 SKT Themes Demo Import fires an action
add_action( 'import_end', function() {
// Your code runs here.
}, 10, 1 );
// Change a value SKT Themes Demo Import is about to use
add_filter( 'wxr_importer.pre_process.comment', function( $comment, $post_id ) {
// Change $comment here.
return $comment;
}, 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
-
/** * Complete the import. */ do_action( 'import_end' ); -
/** * Begin the import. */ do_action( 'import_start' ); -
/** * Comment has been imported. */ do_action( 'wp_import_insert_comment', $comment_id, $comment, $post_id, $post ); -
/** * Pre-process comment data */ apply_filters( 'wxr_importer.pre_process.comment', $comment, $post_id ); -
/** * Pre-process post data. */ apply_filters( 'wxr_importer.pre_process.post', $data, $meta, $comments, $terms ); -
/** * Pre-process post meta data. */ apply_filters( 'wxr_importer.pre_process.post_meta', $meta_item, $post_id ); -
/** * Pre-process term data. */ apply_filters( 'wxr_importer.pre_process.term', $data, $meta ); -
/** * Pre-process user data. */ apply_filters( 'wxr_importer.pre_process.user', $data, $meta ); -
/** * Post processing failed. */ do_action( 'wxr_importer.process_failed.post', $post_id, $data, $meta, $comments, $terms ); -
/** * Term processing failed. */ do_action( 'wxr_importer.process_failed.term', $result, $data, $meta ); -
/** * User processing failed. */ do_action( 'wxr_importer.process_failed.user', $user_id, $userdata ); -
/** * Post processing completed. */ do_action( 'wxr_importer.processed.comment', $comment_id, $comment, $meta, $post_id ); -
/** * Post processing completed. */ do_action( 'wxr_importer.processed.post', $post_id, $data, $meta, $comments, $terms ); -
/** * Term processing completed. */ do_action( 'wxr_importer.processed.term', $term_id, $data ); -
/** * User processing completed. */ do_action( 'wxr_importer.processed.user', $user_id, $userdata ); -
apply_filters( 'skt-themes-demo-import/plugin_page_setup', array( 'parent_slug' => 'themes.php', 'page_title' => esc_html__( 'Theme Demo Import' , 'skt-themes-demo-import' ), 'menu_title' => esc_html__( 'Import Demo Data' , 'skt-themes-demo-import' ), 'capability' => 'import', 'menu_slug' => 'skt-themes-demo-import', ) ); -
apply_filters( 'skt-themes-demo-import/upload_file_path', trailingslashit( $upload_dir['path'] ) ); -
apply_filters( 'import_attachment_size_limit', 0 ); -
do_action( 'import_post_meta', $post_id, $key, $value ); -
apply_filters( 'import_post_meta_key', $meta_item['key'], $post_id, $post ); -
apply_filters( 'skt-themes-demo-import/attachment_prefix', esc_html__( 'Theme Demo Import - ', 'skt-themes-demo-import' ) ); -
apply_filters( 'skt-themes-demo-import/available_widgets', $available_widgets ); -
apply_filters( 'skt-themes-demo-import/before_widgets_import_data', $data ); -
apply_filters( 'skt-themes-demo-import/customizer_import_images', true ); -
apply_filters( 'skt-themes-demo-import/date_format_for_file_names', 'Y-m-d__H-i-s' ); -
apply_filters( 'skt-themes-demo-import/downloaded_content_file_prefix', 'demo-content-import-file_' ); -
skt-themes-demo-import/downloaded_content_file_suffix_and_file_extension
filter Copy link Customise this hookapply_filters( 'skt-themes-demo-import/downloaded_content_file_suffix_and_file_extension', '.xml' ); -
apply_filters( 'skt-themes-demo-import/downloaded_customizer_file_prefix', 'demo-customizer-import-file_' ); -
skt-themes-demo-import/downloaded_customizer_file_suffix_and_file_extension
filter Copy link Customise this hookapply_filters( 'skt-themes-demo-import/downloaded_customizer_file_suffix_and_file_extension', '.dat' ); -
apply_filters( 'skt-themes-demo-import/downloaded_widgets_file_prefix', 'demo-widgets-import-file_' ); -
skt-themes-demo-import/downloaded_widgets_file_suffix_and_file_extension
filter Copy link Customise this hookapply_filters( 'skt-themes-demo-import/downloaded_widgets_file_suffix_and_file_extension', '.json' ); -
apply_filters( 'skt-themes-demo-import/file_mimes', $log_mimes ); -
apply_filters( 'skt-themes-demo-import/import_files', array() ); -
apply_filters( 'skt-themes-demo-import/import_memory_limit', '350M' ); -
apply_filters( 'skt-themes-demo-import/importer_options', array( 'fetch_attachments' => true, ) ); -
apply_filters( 'skt-themes-demo-import/log_file_prefix', 'log_file_' ); -
apply_filters( 'skt-themes-demo-import/log_file_suffix_and_file_extension', '.txt' ); -
apply_filters( 'skt-themes-demo-import/logger_options', array( 'logger_min_level' => 'warning', ) ); -
apply_filters( 'skt-themes-demo-import/message_after_file_fetching_error', '' ); -
apply_filters( 'skt-themes-demo-import/plugin_intro_text', $plugin_intro_text ); -
apply_filters( 'skt-themes-demo-import/regenerate_thumbnails_in_content_import', true ); -
apply_filters( 'skt-themes-demo-import/set_time_limit_for_demo_data_import', 300 ); -
apply_filters( 'skt-themes-demo-import/time_for_one_ajax_call', 25 ); -
apply_filters( 'skt-themes-demo-import/timeout_for_downloading_import_file', 20 ); -
apply_filters( 'skt-themes-demo-import/upload_file_url', trailingslashit( $upload_dir['url'] ) ); -
apply_filters( 'skt-themes-demo-import/widget_import_results', $results ); -
skt-themes-demo-import/widget_importer_after_single_widget_import
action Copy link Customise this hookdo_action( 'skt-themes-demo-import/widget_importer_after_single_widget_import', $after_widget_import ); -
do_action( 'skt-themes-demo-import/widget_importer_after_widgets_import' ); -
do_action( 'skt-themes-demo-import/widget_importer_before_widgets_import' ); -
apply_filters( 'skt-themes-demo-import/widget_settings', $widget ); -
apply_filters( 'skt-themes-demo-import/widget_settings_array', $widget ); -
do_action( 'wp_import_insert_post', $post_id, $original_id, $postdata, $data ); -
do_action( 'wp_import_insert_term', $term_id, $data ); -
do_action( 'wp_import_insert_term_failed', $result, $data ); -
apply_filters( 'wp_import_post_comments', $comments, $post_id, $post ); -
apply_filters( 'wp_import_post_data_processed', $postdata, $data ); -
apply_filters( 'wp_import_post_terms', $terms, $post_id, $data ); -
do_action( 'wp_import_set_post_terms', $tt_ids, $ids, $tax, $post_id, $data );
Generated from SKT Themes Demo Import'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: