Description
Tanik Link Repair Toolkit helps WordPress administrators audit post content links, identify broken destinations, track page URL changes, and manage whether links open in the same tab or in a new tab.
Review scan results before editing content. A dedicated Link Tab Behavior Manager classifies links using the current site hostname, without hard-coded domains. Use its separate site-wide actions to remove target=”_blank” from internal links and add target=”_blank” to external HTTP(S) links. Both actions can be undone if the edited content has not subsequently changed. Site-wide changes require administrator permissions and the unfiltered_html capability to preserve existing markup during post updates. On multisite, regular site administrators may not have that capability.
Features
- Search & Replace supports plain visible-text or safe URL replacement, plus existing Keyword Linking, with selectable Content, SEO Metadata, Buttons & Menus, or Entire Website scopes.
- Preview counts and affected content with Dry Run enabled by default, without modifications.
- Replace exact linked anchor text, hyperlink destination, or both, without affecting unlinked text in Keyword Linking mode.
- Require explicit confirmation before applying a non-dry-run preview.
- Search content candidates in small batches and verify matches before each update.
-
Undo the latest Search & Replace operation using original per-item content; later manual edits cause conflicts and are not overwritten.
-
The dashboard Scan Entire Site button opens the Scan Entire Site tab without starting a scan. Start the batched scan from that tab.
- Scan posts, pages, and supported public custom post types for HTML anchor links.
- Display scan progress from 0% to 100%.
- Choose Published, Drafts, Trash, or any combination before a Full Scan; only selected content statuses are queried.
- Filter scan results by All, OK, Broken, and Unverified status.
- Open the corresponding WordPress editor in a new tab from each permitted scan-result Edit Page button.
- Track hierarchical page URL changes, including parent and child pages.
- Scan existing published post content for outdated Parent/Child page URLs, including changes made before activation without recorded plugin history.
- Compare linked historical paths with the current page hierarchy and available WordPress old-slug history; uniquely matched leaf slugs can suggest candidates, but cannot prove historical parent relationships.
- Automatically approve only unambiguous old-slug metadata matches when the old path does not resolve to a current page. Require administrator confirmation for inferred parent-path matches; never automatically repair uncertain candidates.
- Preview and repair matching old internal links in post content, supported Gutenberg/Spectra button URLs and supported builder URL metadata.
- Undo repairs when content has not been modified since the repair.
- Manage link scanning and repairs from the WordPress admin dashboard.
- Identify same-domain HTTP and HTTPS links using the current WordPress home URL, including suitable www variants.
- Treat root-relative links, document-relative URLs and fragments such as #contact as internal.
- Preview counts for internal and external links and links needing tab corrections, without changing content.
- Remove new-tab targets from internal HTML links via a separate administrator action.
- Add new-tab targets to external HTTP(S) HTML links using a separate administrator action.
- Update supported core Gutenberg Button and Navigation Link target attributes as applicable.
- Process scans and changes in small AJAX batches, with a progress indicator and per-post backups for undo.
- Preserve anchor text, URLs, styling, and unrelated HTML attributes during tab changes.
Historical Parent and Child URL Detection
Open Internal Link Fixer > Parent & Child Pages and run Scan Parent & Child Pages. In addition to tracking changes made after the plugin was installed, the historical scanner searches existing HTML anchor links in published Pages, Posts, and supported public editor-enabled Custom Post Types. It compares old linked paths with the current published page hierarchy, WordPress old-slug metadata and candidate page slugs.
For example, an old link to /services/additional-services/transgender-surgery/ftm-surgery/ may be suggested as a mapping to /transgender-surgery/ftm-surgery/ if the current hierarchy supports that destination. A matching final slug alone is not proof of identity. Review and explicitly confirm any inferred mapping before using the Link Repair Preview and Apply actions. The scanner does not modify links merely by scanning. Confirmed, uniquely attributable WordPress old-slug records may be approved automatically, but applying repairs remains a separate administrator action. Back up your database before applying and use the available Undo where supported.
This scanner does not reconstruct every historical parent relationship when old URL data is missing, and cannot guarantee a match when multiple pages share slugs. It does not inspect builder-only metadata, arbitrary serialized settings, widgets or theme templates. An empty Recorded URL Changes count reflects recorded changes, not necessarily the absence of outdated links. A historical scan with no candidates likewise does not prove that every link is current.
Search & Replace Coverage and Limitations
Search & Replace is available from Internal Link Fixer > Search & Replace. It works on post_content of supported public editor-enabled post types in publish, draft, private, pending, and future statuses. Only users with manage_options and unfiltered_html permissions can run it. Back up the site before live operations.
Text / Keyword mode changes matching text nodes in standard HTML post content. Absolute HTTP(S) URL searches can replace occurrences in post content. Site-relative URL path searches (for example /about/about-us/ to /about/) also find paths in HTML links and buttons, Gutenberg block JSON attributes, shortcodes and supported page-builder content and metadata, even when the rendered href includes the staging site domain. Path matches avoid similarly named slug suffixes. Ordinary text searches retain their original limited text-node behavior. Text replacements are case sensitive; the search value cannot be empty. Some builder-rendered text and third-party links outside supported stored fields still require manual edits. Entire Website means all supported safe fields, not a blind full-database rewrite.
Keyword Linking mode matches text-only HTML anchors by both keyword text and destination URL, then changes the text, destination, or both. It does not rewrite unrelated unlinked text or nested HTML anchors. Search results include up to 100 sample content items. A dry run does not create undo history. Live application rechecks each item’s original content hash; conflicts are skipped. Undo restores actual original content only when the post is unchanged after replacement.
Search & Replace does not scan options, passwords, theme files, widgets, or arbitrary database tables; it can update supported WordPress navigation menu labels and custom-link URLs when the Buttons & Menus scope is selected. It scans permitted post metadata including supported builder metadata, but not all plugin-specific storage. Serialized objects are excluded. Search operates in batches with a prepared content LIKE query for candidate discovery. Extremely large scans depend on available hosting resources and may need retries; AJAX operations must remain open until completed.
Scan Coverage and Limitations
The general link-health scanner checks standard HTML anchor links in supported WordPress post content.
The Link Tab Behavior Manager scans supported post content for HTML anchors and select core Gutenberg Button and Navigation Link attributes. It dynamically uses WordPress home_url() to distinguish same-host links from different-host HTTP(S) destinations. Relative paths and fragment anchors are treated as internal. Non-web schemes such as mailto:, tel:, and javascript: are skipped. The current staging or production domain is used automatically, but a link to a different production/staging hostname is considered external until its URL is updated.
The tab manager does not automatically modify theme templates, menus, widget options, arbitrary custom fields or metadata stored separately by third-party page builders. Site-wide admin actions are explicit: the link-health scan itself does not change content. Newly added links follow their editor’s current settings until a tab manager action is run. The plugin does not include a separate keyword-link generation engine; it repairs matching existing linked keywords.
Link health verification starts with a quick HEAD request. If the response is not clearly successful, the plugin performs a safe GET check, following a limited number of redirects. A HEAD 404/410 is never enough by itself to report a Broken link: GET must confirm it. In ambiguous cases, an additional GET can confirm a repeated 404/410. Temporary failures can be retried once. Successful HTTP responses do not require the scanner to wait for dynamic frontend JavaScript, embedded forms, or widgets to load.
Only reliably confirmed HTTP 404 and 410 responses are classified as Broken. Conflicting responses, timeouts, inaccessible destinations, HTTP 403/429 and unresolved errors are marked Unverified. Results are cached briefly to avoid redundant checks, and the same URL is checked only once per scan session when possible.
Network checks use WordPress safe HTTP request functions and contact the destination servers for each checked URL. These requests may reveal the scanning site server IP address and requested destination URLs to the receiving servers. Network checks can be affected by authentication requirements, caching, server restrictions, and remote response behavior. Private-network and otherwise unsafe destinations may be blocked and reported as Unverified.
The plugin does not guarantee detection of every link stored in widgets, theme files, custom database tables, or third-party page builder metadata.
Installation
- Log in to your WordPress admin dashboard.
- Navigate to Plugins > Add New Plugin > Upload Plugin.
- Select the Tanik Link Repair Toolkit ZIP file.
- Click Install Now and activate the plugin.
- Open Internal Link Fixer from the WordPress admin menu.
- Use Scan Entire Site to select Published, Drafts, and/or Trash, then click Run Full Scan to check only those content statuses.
- Open Search & Replace, choose Text / URL Replacement or Keyword Linking, select the desired scope checkboxes, then run a dry-run preview before any live replacement.
- Use Parent & Child Pages to review URL changes and scan for historical outdated links, including URLs changed before plugin installation.
- Review historical candidates carefully, confirming only mappings you know are correct.
- Preview and apply confirmed Parent/Child link repairs using the batched Link Repair action. Use Undo Last Repair to restore compatible changes.
- To review tab behavior, open Internal Link Fixer > Link Tab Behavior.
- Click Scan Links (Preview) to see how many internal and external links need attention.
- With a database backup in place, use Internal Links: Open in Same Tab or External Links: Open in New Tab.
- Use Undo Last Tab Behavior Change to revert supported modifications that have not been overwritten by later manual edits.
FAQ
What does Search & Replace Dry Run do?
It scans supported post content, counts matches, and shows a preview. It does not change content or create an Undo backup.
Can I change only a linked keyword, only its URL, or both?
Yes. Keyword Linking mode identifies a text-only anchor by both its existing keyword and URL, then updates the selected differences. Plain unlinked instances are not affected.
Can I undo a Search & Replace operation?
Yes. Undo Last Replacement saves and restores actual original post content from the most recent completed operation. Posts manually edited since replacement are skipped instead of being overwritten.
Is Search & Replace a database-wide replacement tool?
No. It is intentionally limited to supported WordPress post content. Metadata, serialized values, themes and custom third-party data are outside its scope.
Can I scan drafts or trashed content separately?
Yes. On Scan Entire Site, select Published, Drafts, Trash, or any combination. At least one must be selected. The chosen statuses are used by the actual WordPress content query and are remembered for the administrator. Full Scan does not modify content.
Does the scan-result Edit Page action open in a new tab?
Yes. If your account can edit that content item, its Edit Page button opens the corresponding WordPress editor in a new browser tab and leaves the scan results open.
Does scanning modify website content?
No. Scanning and filtering do not modify post content. Link repair is a separate action.
Which links does the plugin scan?
The plugin scans standard HTML anchor href attributes in supported WordPress post content.
Can the plugin detect links that changed before it was activated?
It can scan published supported content for historical candidates from WordPress old-slug metadata or from a unique current page slug. Because WordPress may not retain old parent assignments, slug matches are only suggestions, never proof. An administrator must explicitly confirm candidate mappings before repairs. If a safe match cannot be established, links stay unchanged. The scanner excludes external links and valid current page paths.
Can broken internal links be repaired?
The plugin provides tools to preview and repair matching internal links affected by URL changes.
Can repairs be undone?
Yes. Supported repairs can be undone when the affected post content has not changed since the repair.
Why can a working link appear broken in other scanners?
Some servers block HEAD requests but allow GET. This plugin checks suspicious HEAD responses again with GET. A HEAD 404 followed by a GET 200 is considered OK. Slow-loading forms do not change an HTTP 200 response.
Does this plugin follow redirects?
Yes, WordPress safe HTTP requests follow a limited number of redirects. A successful final destination is considered OK.
Why are some links marked Unverified?
Timeouts, SSL errors, blocked requests, rate limiting, mismatched HEAD/GET results or other uncertain responses do not reliably confirm a broken link. The plugin does not guess a 404 response when none was received.
Does the plugin scan every link on my website?
The plugin scans supported WordPress content. Links stored in theme files, widgets, custom database tables, or third-party builder metadata may not be included.
How does the plugin know if a link is internal?
It compares parsed HTTP(S) link hostnames against the current WordPress home_url() hostname. Exact hostname matches and the optional www alias are internal. Lookalike domains and unrelated subdomains are external.
Does the plugin change external links?
Only when an administrator explicitly uses External Links: Open in New Tab. It adds or maintains target=”_blank” on supported different-domain HTTP(S) HTML links without modifying internal links.
Does it support relative URLs and anchor links?
Yes. Root-relative links, page-relative paths, query-only links, and #fragment anchors are treated as internal and can have target=”_blank” removed.
Will the link tab rules work after moving from staging to production?
Yes, classification uses the current WordPress home URL rather than a hard-coded domain. Links still pointing to a different staging or production hostname are treated as external until their href values are changed.
Can I undo tab behavior edits?
Yes. Changes made by the tab manager are saved per post and can be reversed from its Undo button if that content has not been changed afterward. Multiple apply actions form one reversible sequence until Undo. Conflict cases are skipped rather than overwriting edits.
Does this plugin automatically rewrite new keyword links as they are created?
No standalone keyword-link generator is included. Its existing link repair changes destinations for recognized existing links. Run the tab manager again after adding links to enforce tab behavior on supported content.
Screenshots







Changelog
1.9.6
- Avoid potentially slow full-page permalink snapshot creation during plugin activation.
- Initialize the page URL tracking baseline at the first explicit Parent & Child comparison or historical scan; retain existing snapshots on upgrades.
- Keep existing Search & Replace scopes, link repair, preview, backup history and undo behavior unchanged.
1.9.5
- Added selectable replacement scopes for supported website text and URLs: Entire Website, Content Only, SEO Metadata, and Buttons & Menus.
- Added plain-text replacement in stored page/post/CPT visible HTML text without modifying HTML tags, script/style bodies, code blocks, or shortcode settings.
- Added exact-key SEO title/description support and supported navigation menu label and custom URL replacement.
- Kept dry-run preview, verified backup-before-write, undo, URL repair and existing other tools.
- Note: only supported stored fields are included; generated content, plugin options, and arbitrary builder metadata are not indiscriminately rewritten.
1.9.4
- Restrict Search & Replace in builder metadata to validated URL values, preventing arbitrary script or stylesheet substitutions.
- Exclude executable script/style blocks from URL transformation.
- Verify a stored, readable undo backup before writing changed content or metadata.
1.9.3
- Documented the justification for uncached direct database reads used in builder metadata lookup and persisted repair verification. Link repair behavior is unchanged.
1.9.2
- Allow subsequent Parent & Child link repairs by archiving a previous Undo backup instead of blocking a new repair.
- Keep archived repair history available for guarded Undo without overwriting newer changes.
1.9.1
- Improve recorded parent/child URL mapping, canonical path checks, repair coverage, and result reporting.
1.9.0
- Parent & Child repair now verifies database writes, reports remaining links and incomplete repairs, and includes supported builder templates.
1.8.9
- Repair descendant button and block URL paths when a recorded parent page URL changes, while preserving query strings, fragments, and content.
1.8.5
- Fixed Dashboard Scan Entire Site button opening a long-running synchronous scan instead of navigating to the Scan Entire Site tab.
- The Scan Entire Site tab retains its existing Run Full Scan AJAX progress workflow.
1.8.4
- Fix relative URL path searching and replacement for HTML links and buttons, Gutenberg block attributes, shortcode URLs and supported builder content. Preserve preview and conflict-safe Undo.
1.8.3
- Added Search & Replace to the top navigation on the dashboard, scan, and parent/child pages.
- Added the plugin text domain to native auto-update labels.
- Documented the fresh, prepared metadata query required for row-level preview and undo.
1.8.2
- Enhanced historical Parent/Child link discovery to scan previously published HTML anchor URLs when changes predate plugin installation.
- Added candidate detection against current page paths, old-slug metadata, and unique leaf-slug matches.
- Preserved administrator review for inferred mappings, with preview, repair, and supported undo.
- Historical scan does not guarantee coverage of links stored only in third-party builder metadata.
1.8.1
- Parent/Child historical scan automatically confirms unambiguous old-slug metadata while requiring review for inferred parent hierarchy matches.
- Clarified that Parent/Child repair edits HTML href links in published content and does not blindly rewrite builder metadata.
1.8.0
- Added Search & Replace as the fourth main admin feature.
- Added Text / Keyword and Keyword Linking modes.
- Added dry-run match preview, confirmed live replacement, and operation-specific Undo.
- Added batched candidate discovery and conflict checks for content changes.
- Updated documentation for supported content and limitations.
1.7.4
- Improved broken-link status verification to reduce false-positive HEAD 404/410 results.
- Added safe GET fallback and limited retry for suspicious or temporary HTTP responses.
- Classifies confirmed 404/410 as Broken and uncertain responses as Unverified.
- Preserved bounded redirects, SSL verification, safe HTTP requests and scan-session URL reuse.
- Shortened verification cache periods and refreshed the cache namespace for this release.
1.7.3
- Updated the Scan Entire Site Edit Page action to a WordPress-style button that opens the relevant editor in a new tab for authorized users.
- Switched link-health requests to the WordPress safe HTTP API to guard against unsafe request destinations.
- Updated WordPress.org readme documentation for the button action and external link verification requests.
1.7.2
- Added historical Parent/Child link discovery with batched progress tracking.
- Indexed current WordPress page hierarchy and reviewed legacy old-slug metadata.
- Added explicit administrator confirmation for possible outdated URLs found in supported post content.
- Integrated confirmed historical mappings into the existing Link Repair Preview, batched Repair and Undo workflow.
- Kept uncertain matches, already valid paths and external URLs unchanged.
- Preserved existing future URL tracking, full-site scan and link-tab behavior.
1.7.1
- Added Published, Drafts, and Trash checkboxes to Scan Entire Site.
- Full Scan queries only the selected content statuses, using the existing AJAX batching.
- Remembered each administrator’s status selection and displayed included statuses in scan results.
- Prevented scans when no status is selected.
1.7.0
- Added Link Tab Behavior Manager under the existing plugin sidebar menu.
- Added same-domain HTTP(S), www alias, relative URL and anchor link detection using the active WordPress home URL.
- Added site-wide scan and preview counts for internal and external link targets.
- Added separate actions to remove target=”_blank” from internal links and add it to external HTTP(S) links.
- Added support for HTML anchors and selected core Gutenberg button/navigation link target attributes.
- Added bounded AJAX batches with progress and reversible per-post backups.
- Added guarded Undo for tab behavior changes; skips externally modified posts.
- Preserved prior link health scan, hierarchy tracking, URL repair and undo features.
1.6.2
- Improved scan JavaScript handling using the WordPress Script API.
- Updated WordPress query filter handling.
- Improved AJAX nonce verification.
- Updated WordPress.org directory metadata and readme documentation.
- Preserved existing scanning, repair, tracking, and undo functionality.
1.6.1
- Corrected developer name to Tanik Sarkar.
- Added developer portfolio link: https://taniksarkar.in/
- Improved WordPress.org documentation.
- Added GPL license metadata.
- Added PHP mbstring compatibility fallback.
1.6.0
- Added scan progress tracking.
- Added link status filtering.
- Improved Entire Site Scan experience.
- Preserved Parent and Child Pages tracking.
- Preserved link repair and undo functionality.
