Black Friday 40% off yearly and lifetime plans · 18d left Ends in 18d09h22m Claim 40% off
Options8 docs

How to Import Settings in WordPress

Import Classic Monks settings from a JSON file. Quickly configure a new site by importing settings from an existing one.

By Founder & Lead Developer

Last updated

1 minute

Key takeaways

  • Administrative feature for plugin management
  • Does not affect frontend functionality
  • Reversible where applicable
  • Use with caution (some actions are irreversible)

Why You Need It

Setting up Classic Monks on a new site from scratch is time-consuming. Importing settings from an existing site saves hours of configuration.

How to Use This Feature

  1. Step 1

    Navigate to Settings

    Click into the Classic Monks plugin settings, then the Options tab.

  2. Step 2

    Select the Feature

    Click the relevant subtab and follow the on-screen instructions.

    Import settings for plugins

Common Use Cases

Site migration

When migrating a Classic Monks configuration to a new site, use Export on the old site and Import on the new site.

Clean start

If the configuration is broken, use Reset to restore defaults. For a completely clean slate, use Uninstall.

License management

Keep your license key active for updates and support. Deactivate before migrating to a new domain.

Developer integration

The Options tab provides programmatic access to settings via core functions.

Settings functions:

  • cm_get_option( $key, $default ) retrieves a setting value from the cm_options table
  • cm_update_option( $key, $value ) saves a setting value
  • cm_import_settings( $settings_array ) imports settings from an array

WP Reset hooks:

  • wp_ajax_cm_reset_database handles database reset requests
  • wp_ajax_cm_delete_content handles content deletion
  • wp_ajax_cm_empty_wp_content handles emptying wp-content
  • wp_ajax_cm_delete_plugins handles plugin deletion
  • wp_ajax_cm_delete_themes handles theme deletion
  • wp_ajax_cm_complete_reset handles complete reset

White Label hooks:

  • all_plugins filter modifies plugin data display
  • plugin_row_meta filter modifies plugin row metadata

Troubleshooting

3 problems and how to fix each one.

Import is not working

Cause: The import file may be corrupted or from an incompatible version.
Fix: Verify the file is a valid JSON export from Classic Monks. Check the PHP error log for import errors.

Reset didn’t work

Cause: The reset may require a page refresh or database flush.
Fix: Clear all caching. Check the WordPress error log. If the reset didn’t complete, try again after clearing the cache.

Uninstall is not removing all data

Cause: Some data may be stored in options that the uninstall doesn’t clean.
Fix: After uninstalling, manually check the wp_options table for cm_* prefixed options and remove them.

Was this doc helpful?

Your answer tells us which docs to fix first.

Still stuck? Ask on the forum or email help@classicmonks.com.
Joy Chetry
Written by the person who built it

Joy Chetry

Founder & Lead Developer, Classic Monks

Joy is the founder of Classic Monks and GoodMonks Solutions, a web development agency that builds WordPress and WooCommerce sites for clients. Classic Monks grew out of the agency's own need to consolidate 20 to 30 separate plugins into one core stack.

Follow this doc on a real site.

Open a private WordPress site with Classic Monks, WooCommerce and Bricks Builder installed, and follow this doc step by step. Free for 24 hours, no card.

280 docs, written by Joy Chetry 15 day refund window