Title: Pagehaven – Orphan Finder &amp; Link Inserter
Author: corvet
Published: <strong>November 23, 2026</strong>
Last modified: November 23, 2026

---

Search plugins

![](https://ps.w.org/pagehaven/assets/banner-772x250.png?rev=3817399)

![](https://ps.w.org/pagehaven/assets/icon-256x256.png?rev=3817399)

# Pagehaven – Orphan Finder & Link Inserter

 By [corvet](https://profiles.wordpress.org/corvet/)

[Download](https://downloads.wordpress.org/plugin/pagehaven.0.8.2.zip)

[Live Preview](https://wordpress.org/plugins/pagehaven/?preview=1)

 * [Details](https://wordpress.org/plugins/pagehaven/#description)
 * [Reviews](https://wordpress.org/plugins/pagehaven/#reviews)
 * [Development](https://wordpress.org/plugins/pagehaven/#developers)

 [Support](https://wordpress.org/support/plugin/pagehaven/)

## Description

Pagehaven is an internal linking workflow for sites that write with AI or an editor,
and want full control over every link.

 1. **Scan** the site. The plugin counts inbound internal links for every article and
    lists the orphans (no inbound links) and the weak articles (one inbound link). 
    The scan runs in small steps, so it is safe on slow hosting.
 2. **Export** the article list (JSON or CSV): URL, category, Yoast focus keyword, 
    word count, H2 headings, internal links in and out. For the donor articles you 
    choose, export the full text too.
 3. **Ask any AI** (ChatGPT, Claude, Gemini or a person) for link edits. Pick an orphan
    and the plugin builds a ready prompt with the best-matching donor articles and 
    their text, so there is nothing to attach. For bigger batches, use the export files
    and the general prompt instead.
 4. **Apply** the edits: upload the JSON file or paste the AI’s reply (code fences 
    and chatter around the JSON are ignored). The plugin shows a preview of every insertion,
    you tick what to apply, and every change can be undone later from the history.

**Why it is different**

 * Bring your own AI. Nothing is sent anywhere, and there are no credits or subscriptions.
 * Works in any language: the plugin does not analyse language, your AI writes the
   sentence in the language of the donor article.
 * Nothing changes until you approve it in the preview.
 * The inserted sentence is saved in the history and can be removed with one click.
   Each change also creates a normal post revision.
 * Only simple HTML is allowed in an inserted sentence: a link, bold and italic.

**What the preview checks**

 * The donor article exists and you may edit it.
 * The words the sentence goes after are found, and only once.
 * The sentence is not placed inside an existing link.
 * The article does not already contain this link.

**Safe by design**

 * Administrator-only screens, nonces on every action, capability checks per article
   on every edit.
 * The uploaded file is read from the temporary upload location and is not stored
   on your server.
 * No external requests, no tracking.

#### Edits file format

    ```
    {
      "edits": [
        {
          "post_id": 123,
          "insert_after": "exact words from the donor article",
          "text_html": "See also our guide to <a href=\"https://example.com/target/\">the target topic</a>.",
          "note": "optional"
        }
      ]
    }
    ```

Up to 200 edits and 1 MB per file.

### For developers

The plugin has a few hooks that add-ons can use.

 * `pagehaven_max_edits` (filter): number of edits read from one file. Default 200.
 * `pagehaven_prompt_donors` (filter): number of donor articles in a built prompt.
   Default 3.
 * `pagehaven_prompt_pool` (filter): how many recent posts are searched for donors.
   Default 500.
 * `pagehaven_prompt_donor_chars` (filter): characters of each donor’s text in a
   built prompt. Default 6000.
 * `pagehaven_parsed_edits` (filter): the edits read from the uploaded file.
 * `pagehaven_evaluate_edit` (filter): the check result for one edit.
 * `pagehaven_export_data` (filter): the export data before it is sent.
 * `pagehaven_edit_applied` (action): after an edit was applied. Arguments: donor
   post ID, edit, target info.
 * `pagehaven_edit_undone` (action): after an edit was undone. Arguments: donor 
   post ID, history entry.
 * `pagehaven_after_cards` (action): print your own card below the built-in ones.

## FAQ

### Does it send my content to an AI service?

No. The plugin only creates files you download and reads files you upload. You choose
where to use them.

### What does the built prompt contain?

The title and URL of the orphan article, and the text of up to three donor articles
from the whole site that mention the same names as the orphan (for example place
names from its title and focus keyword; common words such as “road” or “trip” are
ignored). Articles that already link to the orphan are skipped. You copy the prompt
yourself; the plugin sends nothing.

### Does it need Yoast SEO?

No. If Yoast SEO is active, the focus keyword is added to the export.

### Will a link stay if I deactivate the plugin?

Yes. Links are written into the article content like any link you add by hand.

### How do I undo a change?

Open the history below the upload form and press Undo. If the article was edited
afterwards and the sentence can no longer be found exactly once, restore the previous
version from the post revisions.

### Which content does it cover?

Published posts and pages.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Pagehaven – Orphan Finder & Link Inserter” is open source software. The following
people have contributed to this plugin.

Contributors

 *   [ corvet ](https://profiles.wordpress.org/corvet/)

[Translate “Pagehaven – Orphan Finder & Link Inserter” into your language.](https://translate.wordpress.org/projects/wp-plugins/pagehaven)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/pagehaven/), check 
out the [SVN repository](https://plugins.svn.wordpress.org/pagehaven/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/pagehaven/) by [RSS](https://plugins.trac.wordpress.org/log/pagehaven/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 0.8.2

 * New: “Build prompt” for an orphan. A self-contained prompt with the best-matching
   donor articles and their text, nothing to attach.
 * New: paste the AI’s JSON reply into a box instead of saving a file. Code fences
   and text around the JSON are ignored.

#### 0.7.2

 * First public release.
 * Prompt and file format for your AI on the apply screen, “Copy IDs” for orphans.
 * Preview, history and one-click undo for every inserted sentence.
 * Hooks for add-ons.

## Meta

 *  Version **0.8.2**
 *  Last updated **2 hours ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 5.8 or higher **
 *  Tested up to **7.1.5**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [internal linking](https://wordpress.org/plugins/tags/internal-linking/)[internal links](https://wordpress.org/plugins/tags/internal-links/)
   [links](https://wordpress.org/plugins/tags/links/)[orphan pages](https://wordpress.org/plugins/tags/orphan-pages/)
   [seo](https://wordpress.org/plugins/tags/seo/)
 *  [Advanced View](https://wordpress.org/plugins/pagehaven/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/pagehaven/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/pagehaven/reviews/)

## Contributors

 *   [ corvet ](https://profiles.wordpress.org/corvet/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/pagehaven/)