Init Manga Migrator – Fast and Clean Import/Export Tool for Init Manga

Version: 1.0 Tiếng Việt

Init Manga Migrator – Fast and Clean Import/Export Tool for Init Manga
Init Manga Migrator is a purpose-built plugin for the Init Manga theme that lets you back up, transfer, or synchronize manga between WordPress sites with ease. Everything is stored in clean, structured JSON — safe, lightweight, and fully compatible with Init Manga’s schema.

No extensions, no database mess, no downtime. You can run it directly in your admin panel without slowing down your site. Just pick your manga, click Export, and you’ll get a ready-to-import JSON file for another site!

Main Features

  • Export individual manga or your entire library with one click
  • Includes full chapters, core meta, taxonomies, and featured images
  • Automatic import — detects by slug and updates or creates as needed
  • Follows Init Manga’s native data structure for perfect compatibility
  • Built-in cleanup tools for duplicates and orphaned chapters
  • Fully translatable (i18n-ready)
  • Batch processing for smooth performance on large sites

How It Works

  1. Go to Init Manga → Migrator in your admin dashboard
  2. Select manga and click Export Selected
  3. Or export everything using Export All
  4. To import, upload or paste your JSON file and click Import Now
  5. Review the summary — created, updated, skipped, and chapter stats

Cleanup Tools

  • Delete duplicate manga (slug ends with “-2” and has no chapters)
  • Delete orphan chapters (chapters without a valid manga, including linked ghost_chapter posts)
  • Batch-based cleanup to prevent overload on large databases

Developer Filters

Init Manga Migrator provides developer-friendly filters that let you modify or extend its behavior safely. Below are all available filters with real examples:

1. init_manga_migrator_export_chapter_content

This filter lets you modify the chapter content before it’s exported.
It passes three arguments: $content (raw HTML content), $manga_id (parent manga ID), and $row (the chapter row from the database).
Example: For manga with the meta field type = novel, remove all hyperlinks (the <a> tags and their contents).

add_filter('init_manga_migrator_export_chapter_content', function($content, $manga_id, $row) {
    $type = get_post_meta($manga_id, 'type', true);
    if ($type === 'novel') {
        // Remove all <a> tags and their inner content
        $content = preg_replace('#<a\b[^>]*>.*?</a>#is', '', $content);
    }
    return $content;
}, 10, 3);

2. init_manga_migrator_cleanup_dupe_manga_batch

Change the batch size for duplicate manga cleanup (default: 300).
Reduce the value for low-resource servers, or increase it on higher-performance hosting.

add_filter('init_manga_migrator_cleanup_dupe_manga_batch', function() {
    return 200; // Process 200 items per batch
});

3. init_manga_migrator_cleanup_orphan_chapters_batch

Adjust the batch size when cleaning orphan chapters (default: 500).
Tune this value based on your server’s capacity.

add_filter('init_manga_migrator_cleanup_orphan_chapters_batch', function() {
    return 1000; // Process 1000 rows per batch
});

Quick Installation

  1. Download and extract the plugin to /wp-content/plugins/init-manga-migrator/
  2. Activate it through the Plugins menu in your dashboard
  3. Ensure your Init Manga theme is active and properly licensed
  4. Open Init Manga → Migrator to start exporting or importing

Compatibility & Performance

  • Compatible with WordPress 5.5 and above
  • Requires PHP 7.4+
  • Batch-based logic for large libraries (safe for thousands of chapters)
  • Uses clean JSON, no external dependencies

Get Started

Running a manga site with the Init Manga theme and need to migrate, back up, or sync content between servers quickly? Init Manga Migrator is the perfect tool — lightweight, safe, and fully automated!

Review

5.0/5 (1)

Changelog

  • 1.0 – First release of Init Manga Migrator
    • Initial release of the dedicated import/export tool for the Init Manga theme.
    • Supports full export/import of manga (CPT) including chapters, meta fields, taxonomies, and cover images.
    • Automatically matches manga by slug — updates existing posts or creates new ones if missing.
    • Prevents duplicate chapters using the (manga_id, chapter_slug) check.
    • Includes featured image import: preserves alt text, caption, and skips duplicate downloads.
    • Added data cleanup tools:
      • Delete duplicate manga with slugs ending in “-2”.
      • Delete orphan chapters and their linked ghost_chapter posts.
    • Added quick pagination control for exports (custom items per page).
    • Added developer filters:
      • init_manga_migrator_export_chapter_content – modify chapter content before export.
      • init_manga_migrator_cleanup_dupe_manga_batch – adjust batch size for duplicate manga cleanup.
      • init_manga_migrator_cleanup_orphan_chapters_batch – adjust batch size for orphan chapter cleanup.
    • Runs only when the Init Manga theme is active and properly licensed.
    • Clean and lightweight admin UI with full i18n support.
    • Exports clean, minimal JSON fully compatible with future versions.
Made with in HCMC.

Comments


  • No comments yet.

Init Toolbox

Press Ctrl + \ on desktop, or swipe left anywhere on mobile.

Login