Import / Export Plugin Settings

Managing multiple WordPress sites? Migrating from staging to production? Or simply backing up your plugin configuration?

Hide Admin Bar Pro includes an Import/Export tool so you can quickly move your settings between sites — without manually reconfiguring everything.


Use Cases #

  • Clone plugin settings from staging to live sites
  • Apply the same admin bar rules across dozens of client installs
  • Backup your visibility settings before making changes
  • Speed up onboarding for new projects or white-label solutions

How to Export Settings #

1. Go to the Tools Page #

In your WordPress dashboard, navigate to:
Settings → Hide Admin Bar → Tools (Import/Export)

Or, access it via:
Tools → Hide Admin Bar Pro Tools

2. Use the Export Section #

You’ll see a form labeled Export Settings

Click the “Download Settings (JSON)” button.

A .json file will be downloaded — this file contains all your plugin settings.


How to Import Settings #

1. Open the Same Tools Page #

Visit:
Settings → Hide Admin Bar → Tools (Import/Export)

hide-admin-bar-based-on-user-roles-import-export

2. Use the Import Section #

  • Click Choose File
  • Upload a previously exported .json settings file
  • Click “Import Settings”

Your current plugin settings will be replaced by those from the file.


Notes #

  • This feature only works between sites using Hide Admin Bar Pro
  • Import replaces all plugin settings
  • The .json format is standardized — you can version it, email it, or store it safely

Developer Tip #

This tool uses the WordPress get_option('hab_settings') and update_option('hab_settings', $data) structure. If you’re familiar with WordPress internals, you can programmatically trigger imports from external systems or command-line scripts.


FAQ #

Can I import settings from the Free version?
No — this feature is Pro-only. Free installs don’t support import/export.

Will import overwrite my current settings?
Yes — settings are replaced entirely. Always export a backup first.

Can I edit the JSON file manually?
Technically yes, but it’s not recommended unless you know what each field does.

What are your feelings
Updated on April 19, 2025