Skip to content
    Guide

    WP tools: search and replace, database clean-up, cron, options and more

    Last updated

    The WP tools page gathers jobs that normally mean logging in to WordPress, installing a plugin or asking a developer: changing text across the whole database, clearing out clutter, running scheduled tasks, editing settings and adding redirects. You can do all of them remotely, on any connected site.

    Some of these tools change the site’s database directly, and those changes cannot be undone. This guide explains each tool, what it does behind the scenes and when to take a backup first.

    Open it from WP tools in the left-hand menu, under Tools.

    Choosing a site, and maintenance mode

    Start by picking a site in Select Site. Only connected sites are listed. If you have none, the page asks you to add a site and install the MaintainHQ plugin first.

    Once a site is chosen, Maintenance Mode appears with Turn on and Turn off buttons. These control WordPress’s own simple maintenance mode, the plain "Briefly unavailable for scheduled maintenance" message. For a branded page with a schedule and a bypass link, use the site’s Maintenance page section instead; see branded maintenance and coming-soon pages.

    If MaintainHQ Site Tools are switched on for your account, a MaintainHQ Site Tools card also links to each Site Tools module for the chosen site.

    Search & Replace

    Changes a piece of text everywhere in the site’s database. The classic use is moving a site to a new address: replacing every "http://old-site.com" with "https://new-site.com".

    It is serialisation-safe. Some WordPress data is stored in a packed format that records the length of each piece of text; a simple find and replace breaks it, but this tool rewrites it correctly. GUIDs (the permanent IDs WordPress gives posts) are deliberately left alone.

    1. Type the text to find in "Search for..." (at least two characters) and the new text in "Replace with...".
    2. Click Preview. Nothing is changed; you see how many matches there are in how many rows.
    3. If the numbers look right, take a backup (use Backup Now below), then click Replace and confirm.

    Large databases are processed in several passes automatically, with a running count of replacements. The result lists any tables that were skipped because they lack the kind of key the tool needs to update rows safely.

    Database Optimizer, Clear Cache and Backup Now

    Database Optimizer

    Clean Database deletes post revisions (old saved copies of posts and pages), auto-drafts, spam and trashed comments, orphaned metadata (extra data left behind by deleted items) and expired transients (temporary cached values). You are asked to confirm, then told how many of each were removed.

    Clear Cache

    Clear All Caches flushes WordPress’s object cache and the page cache of supported caching plugins: WP Rocket, W3 Total Cache, LiteSpeed, WP Super Cache, WP Fastest Cache and SiteGround’s. Use it after changing a design or content that is not showing up.

    Backup Now

    DB Only backs up just the database (posts, pages, settings, users). Full Site backs up the database and files. The backup appears on the site’s Backups section once it has been uploaded.

    Toggle Firewall and Cron Job Manager

    Toggle Firewall

    Enable or Disable switches the MaintainHQ firewall on the site on or off remotely. You might disable it briefly while working out whether it is blocking something legitimate.

    Cron Job Manager

    WordPress runs scheduled tasks (called cron events) such as publishing scheduled posts, sending emails and plugin housekeeping.

    • List Crons shows every scheduled event: its name, how often it repeats, its next run time, and how many are overdue (shown in red).
    • Run now on any event runs it immediately.
    • Delete removes a scheduled event. A recurring event stops recurring until its plugin schedules it again.
    • Run Missed runs every overdue event at once.

    Options Editor and Redirect Manager

    Options Editor

    WordPress keeps most site-wide settings in a database table called wp_options. Enter an option name (for example blogname, the site title) and click Get Value to see and edit it. Switch on "Save as JSON" for values that are lists or groups of settings, then click Save. Delete option removes it after you confirm; plugins that rely on it may reset their settings.

    List All shows the largest autoloaded options and the autoloaded total. Autoloaded options are loaded on every page view, so a very large total slows the whole site down.

    Core settings and values that look like secrets are protected and cannot be changed here. Values too long to edit here can be changed with the WP-CLI console on the site’s page.

    Redirect Manager

    Creates 301 redirects (permanent redirects that also tell search engines a page has moved) without installing a plugin. Enter the old path (such as /old-page) and the new URL, then click Add 301. List All shows every redirect, each with a Remove button.

    AI Error Log Analyzer

    Paste the contents of a PHP error log into the box and click Analyze Errors. The analyser groups the errors into issues, each with a severity (critical, warning or notice), how many times it occurred, the file it came from, a plain-English description and a suggested fix. It also gives an overall summary and impact.

    This tool only reads what you paste; it does not change the site. For errors MaintainHQ has captured automatically, see the PHP Errors tab on the Performance page, or ask Gus to diagnose and fix the problem.

    Which tools your plan includes

    Cron Job Manager, Options Editor and Redirect Manager are Advanced WP Tools. If your plan does not include them, their cards are faded and show which plan unlocks them. See pricing. Sites on MaintainHQ Hosting get these tools included through the hosting panel.

    Frequently asked questions

    Can I undo a search and replace?
    No. The change is written straight to the database. Run Preview first, take a backup with Backup Now, and if something goes wrong restore that backup from the site’s Backups section.
    Is Maintenance Mode here the same as the branded maintenance page?
    No. These buttons use WordPress’s built-in maintenance message, which WordPress ends by itself after about 10 minutes. The branded maintenance page is set up per site under Maintenance page on the site’s own page, with your branding, a schedule and a bypass link.
    Why is a site missing from Select Site?
    Only connected sites are listed. If a site is pending or disconnected, reconnect it first.
    Is the database clean-up safe?
    It only removes revisions, auto-drafts, spam and trashed comments, orphaned metadata and expired transients. That is safe for almost every site, but revisions cannot be recovered afterwards, so take a backup if you might want old versions of posts.

    Let MaintainHQ run the routine

    Updates with automatic rollback, backups, uptime, security checks and client reports, with Gus to fix what breaks.

    Start free trial

    From £29 a month for up to 2 sites. Every plan starts with a 14-day trial.