ResetForge for Multisite

外掛說明

ResetForge for Multisite is engineered from the ground up for WordPress Multisite networks. Unlike traditional single-site reset plugins that execute broad TRUNCATE wp_* queries, this plugin enforces strict database prefix isolation, filesystem sandboxing, and resource classification to ensure that resetting a subsite never impacts other sites, shared users, or network configuration.

Key Features

  • Strict Multisite Scope Isolation: Distinguishes network tables, site-specific tables, shared user tables, and third-party plugin tables.
  • Granular Reset Profiles:
    • Content Reset: Safely removes posts, pages, terms, taxonomies, and comments while preserving media, options, and plugins.
    • Content + Media Reset: Cleans content and site-specific uploads directory while leaving root uploads untouched.
    • Development Reset: Cleans content, media, transients, and plugin site tables for iterative development.
    • Factory Reset: Reverts a subsite to a clean initial state while preserving core routing and bootstrap options.
  • Deterministic Reset Plans & Dry-Run: Inspect exact discovered tables, row counts, and upload sizes prior to any destructive operation.
  • Safety Snapshots: Generates pre-operation database table dumps and JSON metadata manifests in protected storage.
  • Post-Reset Invariant Verification: Automatically verifies network integrity, user table invariance, and target cleanup post-execution.
  • Network Audit Log: Permanent network-level ledger of all reset operations, users, durations, and results.
  • WP-CLI Native Integration: Identical core engine exposed via wp resetforge {sites|scan|reset|history}.
  • Concurrency Locking: Prevents double-submissions, parallel execution conflicts, and race conditions.

安裝方式

  1. Upload resetforge-for-multisite to the /wp-content/plugins/ directory, or install through Network Admin.
  2. Network Activate the plugin through the ‘Plugins’ menu in WordPress Network Admin.
  3. Access the toolkit under Network Admin > ResetForge.

常見問題集

Does resetting a subsite delete users?

No. In WordPress Multisite, users reside in the global wp_users and wp_usermeta tables. Resetting a subsite only removes site-specific role assignments and leaves user accounts intact across the network.

Can I reset the Main Site?

Yes, but the Main Site (blog_id = 1) receives enhanced safeguards. Shared network options and subsite uploads folders (/uploads/sites/) are strictly protected from deletion.

Is WP-CLI supported?

Yes. You can run wp resetforge scan <site-id> and wp resetforge reset <site-id> using the exact same safety engine.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈ResetForge for Multisite〉的開發相關工作。

參與者

將〈ResetForge for Multisite〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄。

變更記錄

1.0.0

  • Initial production release of ResetForge for Multisite.