Rara One Click Demo Import 1.3.5 has 15 actions and 44 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 Rara One Click Demo Import fires an action
add_action( 'import_end', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Rara One Click Demo Import is about to use
add_filter( 'rara_demo_importer_pre_prepare_demos_for_js', function( $value, $demos, $demo_imported_id ) {
// Change $value here.
return $value;
}, 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
-
/** * Complete the import. */ do_action( 'import_end' ); -
/** * Begin the import. */ do_action( 'import_start' ); -
/** * Filters demo data before it is prepared for JavaScript. */ apply_filters( 'rara_demo_importer_pre_prepare_demos_for_js', array(), $demos, $demo_imported_id ); -
/** * Filters the demos prepared for JavaScript. */ apply_filters( 'rara_demo_importer_prepare_demos_for_js', $prepared_demos ); -
/** * 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( 'rrdi/plugin_page_setup', array( 'parent_slug' => 'themes.php', 'page_title' => esc_html__( 'Rara One Click Demo Import' , 'rara-one-click-demo-import' ), 'menu_title' => esc_html__( 'Rara Demo Import' , 'rara-one-click-demo-import' ), 'capability' => 'import', 'menu_slug' => 'rara-demo-import', ) ); -
apply_filters( 'rrdi/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( 'rara_demo_importer_config', array() ); -
apply_filters( 'rara_demo_importer_installer', true ); -
apply_filters( 'rara_demo_importer_packages', array() ); -
apply_filters( 'rrdi_before_import_msg', esc_html__( 'Before you begin, make sure all the required plugins are activated.', 'rara-one-click-demo-import' ) ); -
apply_filters( 'rrdi_fresh_install_instruction', $msg ); -
apply_filters( 'rrdi_import_instruction', $msg ); -
apply_filters( 'rrdi_settings_option_tabs', $options ); -
apply_filters( 'rrdi_valid_theme_author_uris', $this->rrdi_allowed_authors_uris ); -
apply_filters( 'rrdi/attachment_prefix', esc_html__( 'Rara One Click Demo Import - ', 'rara-one-click-demo-import' ) ); -
apply_filters( 'rrdi/date_format_for_file_names', 'Y-m-d__H-i-s' ); -
apply_filters( 'rrdi/downloaded_content_file_prefix', 'demo-content-import-file_' ); -
apply_filters( 'rrdi/downloaded_content_file_suffix_and_file_extension', '.xml' ); -
apply_filters( 'rrdi/downloaded_customizer_file_prefix', 'demo-customizer-import-file_' ); -
apply_filters( 'rrdi/downloaded_customizer_file_suffix_and_file_extension', '.dat' ); -
apply_filters( 'rrdi/downloaded_widgets_file_prefix', 'demo-widgets-import-file_' ); -
apply_filters( 'rrdi/downloaded_widgets_file_suffix_and_file_extension', '.json' ); -
apply_filters( 'rrdi/file_mimes', $log_mimes ); -
apply_filters( 'rrdi/import_files', array() ); -
apply_filters( 'rrdi/import_memory_limit', '350M' ); -
apply_filters( 'rrdi/importer_options', array( 'fetch_attachments' => true, ) ); -
apply_filters( 'rrdi/log_file_prefix', 'log_file_' ); -
apply_filters( 'rrdi/log_file_suffix_and_file_extension', '.txt' ); -
apply_filters( 'rrdi/logger_options', array( 'logger_min_level' => 'warning', ) ); -
apply_filters( 'rrdi/message_after_file_fetching_error', '' ); -
apply_filters( 'rrdi/plugin_intro_text', $plugin_intro_text ); -
apply_filters( 'rrdi/regenerate_thumbnails_in_content_import', true ); -
apply_filters( 'rrdi/set_time_limit_for_demo_data_import', 300 ); -
apply_filters( 'rrdi/time_for_one_ajax_call', 25 ); -
apply_filters( 'rrdi/timeout_for_downloading_import_file', 20 ); -
apply_filters( 'rrdi/upload_file_url', trailingslashit( $upload_dir['url'] ) ); -
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 Rara One Click 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: