GrabWP Tenancy

Mô tả

GIẢI PHÁP WORDPRESS MULTISITE ĐƠN GIẢN – KÍCH HOẠT MULTI TENANT DỄ DÀNG

GrabWP Tenancy provides the foundation for multi-tenant WordPress with essential isolation features. Host your tenants effortlessly on a single domain using our new Path-Based Routing (e.g., example.com/site/abcdef), or map them to full custom domains. It is the perfect, lightweight, drop-in replacement for WordPress Multisite built for simplicity and scale.

📖 Tài liệu đầy đủ: grabwp.com
💻 Mã nguồn: GitHub Repository
🐛 Báo lỗi: GitHub Issues

Tính năng chính

  • Database thông minh: Dùng chung MySQL nhưng mỗi tenant có prefix riêng, đảm bảo dữ liệu không bị trộn lẫn
  • Uploads riêng biệt: Mỗi website (tenant) có thư mục media/uploads riêng
  • Tối ưu tài nguyên: Dùng chung themes và plugins giữa các website để dễ quản lý
  • Flexible Routing Options: Choose between domain-based routing or our new path-based (subdirectory) routing for an effortless setup without DNS changes.
  • Quản lý đơn giản: Giao diện admin WordPress thân thiện để quản lý các tenant
  • Hiệu suất cao: Plugin được load sớm trước WordPress core để đảm bảo hoạt động ổn định

Need More? Upgrade to Pro

Managing multiple client sites and need enterprise-grade isolation? GrabWP Tenancy Pro adds:

  • Dedicated MySQL or SQLite database per tenant — complete data isolation, zero cross-tenant risk
  • Full wp-content separation — isolated themes, plugins & uploads per tenant
  • AJAX backup & restore — 7-step backup, 8-step restore with real-time progress UI
  • Cross-database migration — move tenants freely between shared MySQL, dedicated MySQL, and SQLite
  • Extension sync & management — sync plugins/themes with filesystem, switch between symlink and copy installs
  • Broken symlink auto-repair — one-click detection and repair
  • Custom tenant data location — store content outside wp-content/uploads using settings or wp-config.php
  • Per-tenant config files — each tenant gets its own config; new tenants inherit master defaults

From $9.99/month — all plans include every feature. Use code EARLYBIRDPRO for 20% off.

👉 Get Pro Now

Ảnh màn hình

  • Adding one domain per tenant
  • Support multiple domains per tenant
  • Màn hình quản lý danh sách tenant

Cài đặt

  1. Upload plugin vào thư mục /wp-content/plugins/grabwp-tenancy
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
    📖 Need detailed setup instructions? Visit our complete documentation for step-by-step guides and troubleshooting.

Hỏi đáp

Plugin này có hoạt động trên WordPress Multisite không?

No, this plugin provides multi-tenancy functionality without requiring WordPress multisite. It creates tenant isolation through domain-based or path-based routing and database prefixes.

Do I need a custom domain for every tenant?

No! With our new path-based routing feature, you can completely bypass complex domain and DNS configurations. You can host tenants dynamically on subdirectories underneath your main site (e.g., yoursite.com/client-a).

Tôi có thể dùng nhiều tên miền cho một website không?

Được. Bạn có thể thiết lập nhiều domain cho mỗi tenant thông qua giao diện quản trị hoặc file cấu hình. Điều này rất hữu ích khi bạn muốn một website hoạt động trên nhiều tên miền khác nhau.

Plugin này có tương thích với các plugin WordPress khác không?

Plugin được thiết kế để hoạt động tốt với hầu hết các plugin WordPress. Tuy nhiên, một số plugin truy cập trực tiếp vào database có thể cần điều chỉnh để nhận diện đúng prefix của từng tenant.

Làm sao để được hỗ trợ khi cần?

How is this different from WordPress Multisite?

WordPress Multisite shares one database, one set of plugins, and one set of themes across all sites. GrabWP Tenancy gives each tenant true isolation — separate table prefixes, separate upload directories, and with Pro, completely dedicated databases and per-tenant plugins/themes. No network admin complexity, no shared-database risks.

Can I manage 50+ client sites with this?

Yes. GrabWP Tenancy is built for WordPress freelancers and agencies managing multiple client sites from a single installation. The admin interface handles tenant CRUD, and Pro adds backup/restore per tenant for easy management at scale.

Đánh giá

6 Tháng 10, 2025
Straight to the point without useless “bells and whistles”. Developer very responsive. Waiting for the Pro version to add more features and extend capabilities. Great job!
Đọc tất cả 2 đánh giá

Người đóng góp & Lập trình viên

“GrabWP Tenancy” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

“GrabWP Tenancy” đã được dịch qua 1 ngôn ngữ. Cảm ơn những người tham gia dịch vì đóng góp của họ.

Dịch “GrabWP Tenancy” sang ngôn ngữ của bạn.

Muốn tham gia phát triển?

Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.

Nhật ký thay đổi

1.0.7

  • Major: Introducing Path-Based Routing! You can now host tenants on subdirectories/paths (e.g., example.com/site/abcdef) without requiring separate domains. This completely eliminates the need for complex domain mappings and serves as a true, lightweight replacement for WordPress Multisite.
  • Enhance: Added comprehensive .htaccess diagnostic admin notices specifically tailored for path-based routing support.
  • Enhance: Centralized configuration and diagnostic tools into a transparent, read-only Status Page UI with manual fallback instructions for environment issues.
  • Refactor: Streamlined the installation, uninstallation, and environment-fixing processes into a single GrabWP_Tenancy_Installer class.
  • Security: Improved code compliance by integrating complete nonce verification on sensitive administrative handlers and securely transitioning to wp_is_writable().
  • Fix: Resolved PHP fatal errors (e.g., Class Not Found) relating to the class autoloader sequence during the initial activation process.
  • Quality: Standardized codebase formatting for consistent line endings (CRLF to LF) and file encoding across all files.

1.0.6

  • New: Dedicated Status admin page with system information, file structure, database config, content isolation, and domain routing details (moved out of Settings page)
  • New: One-click Auto Install MU-Plugin button with AJAX handler — auto-creates the must-use plugin file, or shows copy-to-clipboard fallback when the directory is not writable
  • New: One-click Auto Install to wp-config.php button with AJAX handler — injects the load.php require line before the stop-editing marker, or shows copy-to-clipboard fallback when wp-config.php is not writable
  • New: Admin notices for missing MU-plugin and missing wp-config.php loader, shown only on plugin pages, with writability-aware UI (auto-install vs. manual copy)
  • New: Pro Features section added to the plugin readme
  • Improved: Default tenant capability settings are now enabled (Disallow File Mods, Disallow File Edit, Hide Plugin Management, Hide Theme Management) for stronger security out of the box
  • Improved: Added fallback definition of grabwp_tenancy_validate_tenant_id() in Path Manager so validation works even when load-helper.php is not loaded
  • Improved: Tenant edit page title now displays the tenant ID for clarity
  • Improved: Moved AJAX nonces (muPluginNonce, loaderNonce) into localized admin script data
  • Improved: Refactored JS — extracted bindCopyButton() helper, added initMuPluginInstall() and initLoaderInstall() handlers in grabwp-admin.js
  • Improved: Streamlined load-helper.php base-dir resolution logic and added GRABWP_TENANCY_DIRS_FROM_PLUGIN constant
  • Improved: Renamed local variables in tenant views to use grabwp_tenancy_ prefix to avoid potential conflicts
  • Improved: Tested up to WordPress 6.9

1.0.5

  • New: Settings page for tenant capability controls (Disallow File Mods, Disallow File Edit, Hide Plugin Management, Hide Theme Management, Hide GrabWP Plugins)
  • Fix: Tenant ID starting with a number causes database errors on table prefix

1.0.4

  • Enhance tenant management with a new list table for admin
  • Implement logging functionality, and improve tenant deletion process with confirmation prompts.
  • Refactor path management and database handling for better organization and security.
  • Update translations and enhance admin UI elements for improved user experience.
  • Refactor tenant initialization process to streamline functionality for tenant and main site.
  • Remove deprecated asset loading class and configuration management.
  • Enhance tenant context handling and improve upload directory management.
  • Introduce hooks for pro plugin extensibility and improve code organization for better maintainability.

1.0.3

  • Cải tiến lớn: Thêm hệ thống load sớm (early loading) với load-helper.php
  • Tăng cường bảo mật: Cải thiện việc kiểm tra và lọc dữ liệu đầu vào khi load sớm
  • Quản lý đường dẫn: Ra mắt Path Manager mới hỗ trợ tương thích với các phiên bản cũ
  • Chuẩn WordPress: Tối ưu cấu trúc thư mục uploads theo chuẩn WordPress
  • Hỗ trợ CLI: Thêm các lệnh command line để quản lý tenant
  • Tăng hiệu suất: Tối ưu việc nhận diện tenant với cache, giảm thiểu truy cập file system
  • Tương thích: Tiếp tục hỗ trợ cấu trúc wp-content/grabwp cho các site đang dùng

1.0.2

  • Nâng cấp giao diện quản lý tenant
  • Thêm nút truy cập nhanh vào tenant từ trang quản trị chính
  • Ẩn menu plugin ở dashboard của các tenant

1.0.1

  • Cải thiện cấu trúc core để quản lý tenant và xử lý protocol tốt hơn
  • Thêm hệ thống thông báo admin thông minh
  • Thêm constant GRABWP_TENANCY_LOADED để check trạng thái plugin
  • Hỗ trợ đa ngôn ngữ với text domain
  • Thêm bản dịch tiếng Việt

1.0.0

  • Ra mắt phiên bản đầu tiên
  • Tính năng multi-tenant cơ bản
  • Định tuyến qua domain
  • Giao diện quản lý tenant
  • Dùng chung MySQL với prefix riêng
  • Tách biệt thư mục uploads