WPLink – AI Internal Linking

Description

WPLink – AI Internal Linking is the companion WordPress plugin for the WPLink desktop app. It exposes REST API endpoints that let WPLink discover your site, extract content from Bricks Builder pages (not just standard posts), and safely insert internal links – including into pages that store content in page-builder metadata rather than post_content.

Unlike keyword-based linkers, WPLink uses semantic AI analysis to understand content meaning and context. Most websites miss 60%+ of their internal linking potential; WPLink finds them automatically and this plugin is what lets the AI reach content stored inside Bricks Builder.

Why WordPress Users Choose WPLink:

  • Native Bricks Builder support – Reads and writes _bricks_page_content_2 so Bricks pages aren’t invisible
  • Yoast SEO & RankMath compatible – Works alongside your existing SEO plugins
  • Custom post type support – Analyzes and links all your content types
  • 2-minute setup – Connect your site via Application Passwords, no coding required
  • AI-powered analysis – Semantic topic clustering and context-aware link scoring (done in the WPLink desktop app)
  • Automatic updates – Link changes are applied directly to your WordPress posts and pages via secure REST API

This lightweight plugin provides REST API endpoints that allow WPLink to discover your site, read content from standard posts and Bricks-built pages, and apply internal links safely using builder-native write paths.

Features:

  • Native Bricks Builder support – Reads content from and writes links into _bricks_page_content_2 so Bricks pages work the same as Gutenberg
  • Works with Yoast SEO & RankMath – Compatible with major WordPress SEO plugins
  • AI-powered semantic linking – Understands content meaning, not just keywords (analysis runs in the WPLink desktop app)
  • Custom post type support – Analyzes and links all your WordPress content types
  • Bulk link management – Review and approve AI suggestions from the WPLink app
  • Orphan page detection – Find and fix pages with zero internal links
  • 2-minute setup – Configure entirely via WordPress Application Passwords
  • REST API integration – Secure, automatic link updates without manual work
  • Minimal footprint – Doesn’t store data locally
  • Security-first design – Proper capability checks and sanitization

How It Works:

  1. Generate a WordPress Application Password in your user profile
  2. Configure the credentials in the WPLink desktop app
  3. WPLink discovers your site and can read from and write to both Gutenberg and Bricks-built content
  4. All communication happens securely via WordPress REST API with Basic Authentication

API Endpoints

All endpoints are available under both /wp-json/wplink/v1/ and /wp-json/meshr/v1/ (legacy).

Health Check

GET /wp-json/wplink/v1/check

Returns site info, plugin version, and capability flags (including whether Bricks is detected on the site).

Get Post Content (builder-aware)

GET /wp-json/wplink/v1/posts/{post_id}/content

Returns extracted plain text and an element-level breakdown. For Bricks posts, parses _bricks_page_content_2. For others, falls back to post_content.

Insert Link (builder-aware)

POST /wp-json/wplink/v1/posts/{post_id}/insert-link

Request body:
json
{
"keyword": "digital marketing",
"target_url": "https://example.com/services/digital-marketing/",
"occurrence": 1
}

For Bricks pages, finds the first occurrence of the keyword in a text-bearing element and wraps it with an anchor inside the Bricks JSON. CSS regen is triggered automatically.

Bulk Link Update (URL migration)

POST /wp-json/wplink/v1/bulk-link-update

Unchanged from 1.0.0. Used for URL-replacement migrations in standard post_content.

Webhook (Optional)

POST /wp-json/wplink/v1/webhook

Requires HMAC signature verification. Configure MESHR_WEBHOOK_SECRET in wp-config.php.

Privacy Policy

This plugin does not collect, store, or transmit any personal data. All communication occurs between your WordPress site and the WPLink desktop app via REST API endpoints. No external services are contacted by the plugin itself.

Support

For support, documentation, and more information, visit:

Screenshots

Installation

  1. Upload the plugin files to the /wp-content/plugins/meshr-ai-internal-linking directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Generate a WordPress Application Password:
    • Go to Users Your Profile
    • Scroll to “Application Passwords”
    • Enter a name (e.g., “WPLink”) and click “Add New Application Password”
    • Copy the generated username and password
  4. In the WPLink desktop app, enter your WordPress site URL and the Application Password credentials
  5. WPLink will automatically discover your site, including Bricks-built pages

FAQ

Does this plugin store any data?

No. This plugin does not store any data locally. It only provides API endpoints for WPLink to communicate with your WordPress site.

Do I need to configure anything in WordPress?

No admin UI is required. You only need to generate a WordPress Application Password in your user profile and provide it to the WPLink desktop app.

Is my site secure?

Yes. The plugin uses WordPress’s built-in authentication system (Application Passwords), proper capability checks (current_user_can), and sanitizes all inputs. Webhook endpoints use HMAC signature verification when enabled.

Can I test the connection?

Yes. Once configured, you can test the health check endpoint:

GET https://your-site.com/wp-json/meshr/v1/check

You’ll need to authenticate using Basic Auth with your Application Password credentials.

How do I enable webhook support?

Add this constant to your wp-config.php file:

define( 'MESHR_WEBHOOK_SECRET', 'your-secret-key-here' );

Replace your-secret-key-here with a strong, random string. Webhook requests will include an X-Meshr-Signature header for verification.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“WPLink – AI Internal Linking” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.1.0

  • Renamed to WPLink – AI Internal Linking
  • Added native Bricks Builder support: reads and writes _bricks_page_content_2
  • New endpoint: GET /posts/{id}/content returns builder-aware extracted text
  • New endpoint: POST /posts/{id}/insert-link safely inserts a link into Bricks or standard posts
  • Routes now registered under both /meshr/v1/ (legacy) and /wplink/v1/ (preferred)
  • Backwards compatible: existing integrations continue to work without changes

1.0.0

  • Initial release
  • Health check endpoint (GET /meshr/v1/check)
  • Bulk link update endpoint (POST /meshr/v1/bulk-link-update)
  • Optional webhook endpoint with HMAC verification (POST /meshr/v1/webhook)