diff --git a/src/wordpress-importer.php b/src/wordpress-importer.php index 947997ac..debd5912 100755 --- a/src/wordpress-importer.php +++ b/src/wordpress-importer.php @@ -106,7 +106,9 @@ function import( $file ) { $this->import_start( $file ); $this->get_author_mapping(); - + + do_action( 'before_process_import' ); + wp_suspend_cache_invalidation( true ); $this->process_categories(); $this->process_tags(); @@ -118,6 +120,8 @@ function import( $file ) { $this->backfill_parents(); $this->backfill_attachment_urls(); $this->remap_featured_images(); + + do_action( 'after_process_import' ); $this->import_end(); }