Appearance
WordPress Compatibility
Introduction
A site moves from WordPress to kitloom by pointing kitloom at its database. Nothing is converted: kitloom reads the tables, options and meta as WordPress and its plugins left them, and the site keeps its content, its addresses and its settings.
The move is one way. kitloom writes new arrays as JSON (see Data), so WordPress is not expected to read the database back. How to rehearse it on a copy and compare the two sites page by page: Migrate from WordPress.
What is picked up
WordPress itself
| What | Where WordPress keeps it | kitloom |
|---|---|---|
| Posts, pages, attachments, revisions | posts, postmeta | kitloom/ |
| Categories, tags, custom taxonomies | terms, term_, term_, termmeta | kitloom/ |
| Comments | comments, commentmeta | kitloom/ |
| Users, their passwords | users (WordPress's password hashes), usermeta | kitloom/ (the wordpress user provider and hash driver) |
| Roles | usermeta ({prefix}capabilities, {prefix}user_), the {prefix}user_ option | kitloom/ — who holds which role is shared with WordPress |
| Sign-up | users_, default_ | kitloom/, kitloom/ |
| Addresses | permalink_, category_, tag_, show_, page_, page_ | kitloom/ |
| Site settings | blogname, blogdescription, date_, posts_, sticky_… | kitloom/, kitloom/ |
| Page templates | _ meta | kitloom/ |
| Blocks | block comments in post_; synced patterns as wp_ posts | kitloom/; dynamic blocks (latest posts, latest comments, archives, calendar, categories, search, tag cloud, page list) by kitloom/ |
| Menus | nav_ terms, nav_ posts with _ meta, locations in theme_ | kitloom/ |
| Widgets | sidebars_, widget_ options | kitloom/ (zones and layout), kitloom/ (WordPress's standard widgets) |
| Media | attachment posts, _, _, _; files under / | kitloom/ |
| Media shortcodes | [gallery], [caption], [audio], [video], [playlist], [embed] in content | kitloom/ |
Plugins
| Plugin | What is kept | kitloom |
|---|---|---|
| Rank Math SEO | rank-, -, -, - options; rank_, rank_, rank_, rank_, rank_… meta; template variables (%title% %sep% %sitename%) | kitloom/, kitloom/ |
| Rank Math Redirections, 404 Monitor | rank_, rank_, rank_ tables; their keys in rank- | kitloom/ |
| Yoast SEO (imported once) | _ post meta, the wpseo_ option, wpseo_ user meta; wpseo, wpseo_, wpseo_ options — read once and written as Rank Math's keys above | kitloom/ |
| Redirection (imported once) | redirection_, redirection_ tables and redirection_ — read once and written as Rank Math's redirections | kitloom/ |
| Yoast SEO Premium's redirects (imported once) | the wpseo- option (before Premium 3.1 wpseo- and wpseo-) — read once and written as Rank Math's redirections | kitloom/ |
| Rank Math Link Counter | rank_, rank_ tables | kitloom/ |
| ACF, Secure Custom Fields | field groups and fields as acf- / acf- posts; values under the field's meta key with the _ reference; options as options_ | kitloom/ |
| ACF post types and taxonomies | acf-, acf- posts | kitloom/ |
| Contact Form 7 | wpcf7_ posts and their _, _, _, _, _ meta; [contact- shortcodes | kitloom/ |
| Flamingo | messages as flamingo_ posts, the form they came from as a flamingo_ term | kitloom/ |
| WooCommerce | product posts, product_, product_, product_, product_; _, _, _… meta; orders in the HPOS tables (wc_, wc_, wc_, woocommerce_…); woocommerce_ options | kitloom/ |
| Slide Anything | sa_ posts with sa_ meta; [slide- shortcodes | kitloom/ |
| Nextend Social Login | linked Google and GitHub accounts in its social_ table; [nextend_ shortcodes | kitloom/ |
Some modules take a plugin's settings or records once, on request: the module's settings page shows an Import button when the plugin's data is there, and an artisan command does the same. The plugin's own options and tables are left as they are, and importing again adds nothing.
| Plugins | Import | kitloom |
|---|---|---|
| Site Kit by Google, MonsterInsights, Plausible Analytics, Connect Matomo, Yandex Metrica | php artisan analytics: | kitloom/ |
| GTM4WP, Site Kit by Google (Tag Manager) | php artisan tag- | kitloom/ |
| Meta pixel for WordPress, TikTok, LinkedIn Insight Tag, PixelYourSite | php artisan ad- | kitloom/ |
| Complianz, CookieYes | php artisan cookie- | kitloom/ (Complianz's [cmplz- keeps working) |
| Yoast SEO — its settings and the head meta of posts, terms and authors | php artisan seo: | kitloom/, into Rank Math's keys; what is set here already stays |
| Redirection — its rules with their hits | php artisan redirects: | kitloom/; what cannot come over is listed with the reason |
| Yoast SEO Premium — its redirects | php artisan redirects: | kitloom/; a source with a rule of its own here keeps it |
Other modules do the job of a plugin without taking its data: kitloom/ (Insert Headers and Footers, WPCode — snippets are pasted again), kitloom/ (Two Factor, Wordfence — users set up their second factor again).
Content can also come in as a file: kitloom/ reads and writes WXR, the format of WordPress's Tools → Import / Export.
A module for a plugin's data
When a module replaces a WordPress plugin, the plugin's data is the module's data model. The site moves over and the module works with what is there.
1. Find out how the plugin stores things
Install the plugin on a WordPress site, use every feature, and look at what it wrote: its tables (SHOW CREATE TABLE), its options (SELECT * FROM wp_), the meta keys of the records it touched. Note the formats — serialized arrays, on/off or 1/0 flags, IDs as strings.
Save samples as fixtures in the module's tests/ — rows exactly as the plugin wrote them. kitloom/ keeps a snapshot of every field type as Secure Custom Fields stores it.
2. Keep its tables and keys
php
// The plugin's table, created only when the site never had the plugin.
if (! Schema::hasTable('rank_math_redirections')) {
Schema::create('rank_math_redirections', function (Blueprint $table): void {
$table->id();
$table->text('sources');
$table->text('url_to');
$table->unsignedSmallInteger('header_code');
// …the rest as the plugin creates them
});
}Use the plugin's option names and meta keys as they are. Name them once, in a class of the module — Contact in kitloom/, Rank in kitloom/ — so the rest of the code speaks in plain names.
3. Read both formats, write JSON
php
use Kitloom\WpSchema\Support\StoredArray;
$sources = StoredArray::toArray($row->sources); // serialized by the plugin or JSON by kitloom
$row->sources = StoredArray::encode($sources); // JSON from now onOptions that are one array with many keys — Rank Math keeps whole screens in one option — are read and written key by key: change the keys your module owns and leave the others as they are.
4. Test against what the plugin wrote
php
#[Test]
public function sources_are_read_from_what_rank_math_saved(): void
{
$saved = 'a:1:{i:0;a:3:{s:6:"ignore";s:4:"case";s:7:"pattern";s:8:"Old-Page";s:10:"comparison";s:5:"exact";}}';
$this->assertEquals([new Source('Old-Page', Comparison::Exact, ignoreCase: true)], Sources::decode($saved));
}Run the module on a copy of a real site's database before calling it done: the plugin's data has cases no fixture thought of.
What kitloom does not do
- Run WordPress plugins or themes. PHP code written for WordPress does not run; a plugin's data is supported when a kitloom module for it exists, and a theme is rewritten as a kitloom theme.
- Keep the database readable by WordPress. New arrays are JSON; WordPress would not understand them. Moving back is not supported.
- Carry over what lived outside the database. Visitors' cookie choices and sessions stay behind. Uploaded files are copied by hand — the contents of
wp-into the media disk, keeping thecontent/ uploads/ Y/folders; old links tom /then get a 301 to the new address (wp- content/ uploads/ … kitloom/).media - Run the block editor. Blocks in content are drawn as WordPress draws them; the admins edit the HTML with a visual editor (TinyMCE), not with Gutenberg.
- Copy the site for you. The data moves with the database — or as a WXR file with
kitloom/.import- export