WordPress settings portability

Move your setup, not your API keys

Set up export settings WordPress agencies can move across sites with one ZIP. TheOneWP packages the configuration from its own panel, not WordPress core settings. In addition, it deliberately excludes AI keys and runtime logs. During import, it uploads referenced images to the new site and remaps their URLs automatically.

  • 11 explicit TheOneWP option groups exported, not WordPress core settings.
  • AI API keys and runtime logs never leave the site.
  • Referenced images move to the new site and every URL updates automatically.
  • The importer checks for path traversal before extracting any file.
Export Settings Live

Export Settings

  • All module on/off settings
  • Role Manager rules
  • Uploaded images (logo, favicon, login background)
Download Export ZIP

Import Settings

Select a .zip export file
Import ZIP
AI keys never exported Path traversal blocked, images remapped automatically.
Protected
Quick answer

Export settings WordPress: whose settings, exactly?

This is what export settings WordPress sites get with TheOneWP. It is not a WordPress core feature, so it does not touch settings such as permalinks or general site options. Instead, TOWP_Import_Export provides an "Export Settings" and "Import Settings" tab inside TheOneWP's own admin panel. It bundles eleven specific TheOneWP option groups, including module toggles, Role Manager rules, Access Manager lists, robots.txt content and more. In addition, it includes every locally uploaded image those settings reference. However, AI module settings, notification logs, menu ordering and other explicitly excluded groups never enter the archive. During import, TheOneWP uploads images into the destination Media Library and rewrites their old URLs. Finally, the importer merges settings instead of blindly replacing them. As a result, excluded values such as existing AI API keys remain intact.

The rebuild-it-by-hand problem

Cloning a TheOneWP setup usually means redoing it manually

Rebuilding the same TheOneWP configuration on a second site usually means opening the plugin settings again and repeating every choice by hand. For example, agencies may need to recreate access rules, custom columns and login page branding across multiple websites.

A generic export risks moving secrets it shouldn't

A backup or generic export tool may dump every option indiscriminately. As a result, it can carry API keys and access logs somewhere they were never meant to go.

Image references break the moment they move sites

A logo or login background often relies on its original URL. Therefore, moving only the setting can leave the destination site pointing to a file that no longer exists there.

A unified WordPress solution

An allowlist, not a dump of everything

The module exports exactly what belongs in a portable settings file. Therefore, unrelated or sensitive data does not enter the archive accidentally.

Explicit option groups, by name

The exporter includes eleven specific keys. As a result, unrelated settings cannot slip into the archive simply because they exist.

Secrets excluded by policy

TheOneWP strips AI API keys before it creates the export. Therefore, those secrets never enter the ZIP in the first place.

Images that actually work on arrival

Referenced images travel with the export. Then, TheOneWP uploads them to the destination site and updates their URLs automatically.

Verified feature set

The complete export settings WordPress feature set

Every capability below appears directly in the class's export and import handlers. Therefore, the page describes the implementation rather than assumed behavior.

Exclusions

AI keys and runtime data stripped

The exporter removes every ai_-prefixed setting and the Notifications Generator config before export. In addition, menu order, drag-and-drop sort state and activity logs never enter the export list.

ai_ prefix stripped Logs excluded
Images

Bundled, uploaded and relinked

Logo, favicon and login-page images travel inside the ZIP. Then, TheOneWP inserts them into the destination Media Library and generates their attachment metadata and thumbnails.

media/ folder wp_insert_attachment()
Safety

Format-version compatibility check

The importer compares the archive format with the version it supports. Therefore, it refuses exports from newer incompatible plugin versions instead of applying them only partially.

format_version Forward-safe
Merge logic

Excluded settings survive import

The importer merges towp_options with the site's current values instead of replacing everything. As a result, existing AI keys and other excluded settings remain intact.

array_merge() Re-sanitized on save
Validation

Type, size and content checked

The importer checks the extension, MIME type, 50 MB ZIP limit and 10 MB per-image limit before processing files. Therefore, oversized or invalid uploads stop early.

50 MB ZIP 10 MB per image
Recommended workflow

Move export settings WordPress configuration in four steps

First, verify the destination site's own sensitive settings. Then, import the portable configuration on top of them.

01

Download the export ZIP

First, download the archive. One click bundles the eleven option groups and their referenced images into a single file.

02

Confirm the destination site's own AI keys are set

Next, check the destination site's AI configuration. The import will preserve existing keys, but it will not create missing ones.

03

Upload and import the ZIP

Then, upload the archive. TheOneWP adds images to the Media Library and updates every transferred image reference automatically.

04

Spot-check the imported settings

Finally, confirm that Role Manager rules, Access Manager lists and images look correct before considering the migration complete.

Practical use cases

Where portable settings save real setup time

The module fits any situation where the same configuration needs to exist on more than one site. For example, agencies can reuse a standard setup without repeating every setting manually.

Agencies standardizing client sites

Export a known-good configuration once. Then, use it as the starting point for every new client site.

Staging-to-production configuration sync

Move Role Manager rules and Access Manager lists to production. As a result, you avoid entering the same configuration twice.

A known-good settings snapshot

Export before a major configuration change. Therefore, you keep a lightweight snapshot of the previous setup separate from a full site backup.

Operational benefits

Portable, without portable secrets

Every design choice in the verified code favors safe configuration sharing. Therefore, the exporter moves only the data that belongs in a portable settings file.

API keys stay put AI settings never enter the export file. Therefore, the archive cannot carry those keys to another site.
Images arrive working, not broken TheOneWP uploads them to the destination site and updates their URLs automatically.
Version-safe by design If the archive uses an incompatible newer format, the importer stops before applying it.
Destination settings aren't clobbered The importer merges transferred settings with existing ones instead of replacing the entire configuration.
Performance behaviour

A single request, bounded in size

The implementation focuses on a fast, one-shot settings operation rather than a long-running migration job. In addition, strict size limits keep the workload predictable.

Settings only, not full site data

The exporter processes a specific option allowlist rather than posts, media libraries or the full database. Therefore, both export and import can complete in one request.

Hard size limits keep it fast

The 50 MB ZIP cap and 10 MB per-image cap bound the workload. As a result, unexpectedly large files cannot turn a settings import into an uncontrolled operation.

Temporary files always cleaned up

After the operation, TheOneWP removes the generated export ZIP or extracted import directory. It performs this cleanup after both successful and failed operations.

Security implementation

Every ZIP entry checked before extraction

The importer treats every uploaded ZIP as untrusted input. Therefore, validation continues beyond the initial file-type check.

01

Path traversal blocked per entry

Before extraction, the importer checks every file inside the ZIP for ".." sequences and absolute paths. Therefore, a crafted archive cannot write files outside the intended destination folder.

02

manage_options and a verified nonce

Both export and import require the manage_options capability. In addition, each operation verifies a dedicated nonce through check_admin_referer().

03

SVG deliberately excluded from image import

The importer accepts only supported raster image formats. In contrast, it excludes SVG because SVG files can contain embedded script content.

04

MIME type verified, not just the file extension

When PHP's fileinfo extension is available, the importer checks the file's actual MIME type against a specific allowlist. Therefore, simply naming a file with a ".zip" extension is not enough.

Verified compatibility

Uses WordPress's own media and sanitization pipeline

The supplied code routes imported data through core WordPress functions and the plugin's own settings pipeline. Therefore, this page makes no compatibility claim beyond the verified implementation.

Media

Real Media Library attachments

TheOneWP creates real Media Library attachments through wp_insert_attachment() and wp_generate_attachment_metadata(). As a result, WordPress generates attachment metadata and thumbnails instead of merely receiving loose files in the uploads directory.

Core media functions Full attachment
Sanitization

TOWP_Settings_Sanitization

Before saving imported settings, the importer passes the merged array through the plugin's own settings sanitizer. Therefore, imported values follow the same sanitization rules as values entered manually.

Shared sanitizer No bypass
Compression

PHP's ZipArchive extension

Both export and import first check whether the host provides ZipArchive. If it does not, TheOneWP stops and shows a clear, specific error message.

class_exists() checked Clear failure message
Solution comparison

TheOneWP versus common alternatives

Compare this export settings WordPress implementation with a full-site backup or a generic options export. Although all three can move data, they solve very different problems.

Capability TheOneWP Export Settings Other common solutions
Scope An explicit allowlist of configuration, not full site data A full backup moves everything, including data you may not need for configuration portability
Secret handling AI API keys never enter the export file A generic options dump may carry keys along with the rest of the settings
Image portability Bundled, uploaded and relinked automatically Some approaches leave settings pointing to URLs from the original site
Destination protection Merge behavior keeps excluded settings intact A blind overwrite may erase configuration that already exists
ZIP safety The importer checks every entry for path traversal before extraction Validation varies between import tools
Speed Single-request, settings-only scope A full backup performs much more work when you only need configuration
Best practices

Move configuration without surprises

A few habits keep an export and import round trip predictable. In addition, they help separate portable configuration from site-specific data.

01

Set up AI and Notifications Generator separately

The exporter excludes these settings by design. Therefore, configure them directly on each site instead of expecting the archive to transfer them.

02

Keep the plugin version aligned across sites

The importer refuses exports that use a newer unsupported format. Therefore, update the destination plugin first if you encounter a version mismatch.

03

Review Access Manager lists after importing

Blacklists and whitelists often depend on the individual site. Therefore, confirm that those rules still make sense on the destination.

04

Keep a copy of the export file itself

The ZIP provides a lightweight snapshot of plugin configuration. However, it does not replace a full site backup.

Common mistakes

Avoid assumptions the code does not support

The module has a clearly defined scope. Therefore, assumptions outside that scope can create confusion about what the archive actually contains.

Expecting this to be a full site backup

The module moves plugin settings and a limited set of referenced images. It does not move posts, pages, users or the rest of the database. Instead, use Backup Manager when you need a full-site backup or migration.

Expecting AI settings to transfer

The exporter deliberately excludes AI settings. Therefore, configure the AI provider and API key separately on the destination site.

Expecting Snippet Manager or Redirect Manager rules to move

Neither module appears in the exported option list. Therefore, migrate or recreate those rules separately.

Frequently asked questions

Export Settings FAQ

These answers come directly from the verified class and matching UI copy. Therefore, they describe the module's actual behavior rather than assumptions about generic WordPress exports.

Does this export WordPress's own settings, or TheOneWP's?

TheOneWP's. This is an "Export Settings" / "Import Settings" tab inside TheOneWP's own admin panel. Therefore, it never touches WordPress core settings such as permalinks, general options, or reading settings. Everything it moves belongs to this plugin's own configuration.

What exactly gets exported?

The export includes eleven specific option groups: core plugin settings, Custom Content Columns configuration, Role Manager rules, Admin Bar and Dashboard Widget visibility lists, Backend Page Generator pages, Access Manager's blacklist and whitelist, robots.txt content, and the default media category. In addition, it includes any locally uploaded images those settings reference.

Does the export include API keys for the AI modules?

No. The exporter explicitly strips every option key starting with ai_ from towp_options before it creates the archive. In addition, those keys do not appear in the exported option list at all. Therefore, API keys never leave the site through this feature.

What happens to logos, favicons and login page images?

The exporter bundles them into the ZIP under a media/ folder. Then, during import, TheOneWP uploads them into the destination site's own Media Library instead of copying them as loose files. Finally, it updates every setting that referenced the old URL so it points to the new one automatically.

Does importing wipe out AI settings already configured on the destination site?

No. AI settings never enter the export in the first place. Instead of replacing the whole options array, the importer merges the transferred values with the current settings. As a result, an API key already saved on the destination site survives the import.

Is the ZIP file checked before it's extracted?

Yes. Before extraction, the importer checks every archive entry for path traversal, including any ".." sequence or path that starts with a slash. In addition, it accepts only settings.json at the root or files inside media/. It skips anything else.

What if I try to import an export made with a newer version of the plugin?

The importer refuses it and shows a clear message asking you to update first. The export includes a format version number. Therefore, TheOneWP can compare that version with the format the current plugin supports before it changes any settings.

Is there a file size limit on import?

Yes. The ZIP itself can be up to 50 MB. In addition, each image inside the archive can be up to 10 MB before TheOneWP uploads it to the Media Library. The importer checks both limits before processing the archive.

What is explicitly left out of an export?

The export leaves out AI module settings, Notifications Generator settings, Admin Menu Organizer's custom order, Snippet Manager and Redirect Manager data, media category terms, custom content ordering, and Library Importer's library. These groups contain sensitive, runtime, or site-specific data, so they do not belong in a portable settings file.

Stop rebuilding the same settings. Export them once, import them safely.

Use export settings WordPress admins can trust. TheOneWP uses an explicit allowlist, excludes secrets by policy and moves referenced images with their configuration. As a result, your imported setup works on arrival without carrying sensitive data with it.