Title: LeKeyLinks
Author: 老蒋和他的小伙伴
Published: <strong>October 25, 2026</strong>
Last modified: October 25, 2026

---

Search plugins

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

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

# LeKeyLinks

 By [老蒋和他的小伙伴](https://profiles.wordpress.org/laobuluo/)

[Download](https://downloads.wordpress.org/plugin/lekeylinks.1.0.6.zip)

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

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

## Description

LeKeyLinks helps you add internal links automatically. After you define keywords
and target URLs in the admin area, matching text in post content is replaced with
links while existing links and code blocks are left alone.

**Features**

 * Chinese and English keywords (English uses word boundaries)
 * Keyword priority and per-keyword maximum replacements
 * Per-post total link limit (default 5, configurable) to reduce processing cost
 * Skips text inside existing `<a>` tags
 * Skips `<pre>`, `<code>`, `<script>`, `<style>`, and similar regions
 * Keyword list caching to reduce database queries
 * Fast content pre-check before DOM parsing
 * Optional replacement in excerpts (`the_excerpt`)
 * Link styling: bold, color, and rel tokens (noopener, nofollow, sponsored, ugc)
 * Per-post skip via classic editor, block editor, or `_lekl_skip` meta
 * Feeds are not processed; content replacement defaults to singular views

**Management**

 * Add, edit, delete, search, and paginate keywords
 * Central settings screen for switches and styles

## Screenshots

[⌊Keyword list management screen⌉⌊Keyword list management screen⌉[

Keyword list management screen

[⌊Add or edit a keyword⌉⌊Add or edit a keyword⌉[

Add or edit a keyword

[⌊Plugin settings screen⌉⌊Plugin settings screen⌉[

Plugin settings screen

## Installation

 1. Upload the `lekeylinks` folder to `/wp-content/plugins/`, or install the ZIP via
    Plugins  Add New  Upload Plugin.
 2. Activate LeKeyLinks on the Plugins screen.
 3. Open the Keyword Links menu, add keywords and destination URLs.
 4. Open Keyword Links  Settings to configure the per-post link limit and styles.

## FAQ

### Why was a keyword not linked?

Possible reasons: the keyword reached its max replacements; the post reached the
per-post link limit; the match is inside an existing link or code block; the post
is marked to skip replacement; the plugin is disabled; or you are not on a singular
view and excerpt replacement is off.

### What is the difference between max replacements and the per-post link limit?

Max replacements applies to one keyword. The per-post link limit caps the total 
number of auto-inserted links in one post (or one excerpt pass). Both apply, and
keywords are processed from higher to lower priority.

### How do I skip replacement for one post?

Enable the per-post skip panel in Settings, then check the option in the editor.
You can also set post meta `_lekl_skip` to `1`.

### What are the server requirements?

The PHP DOM extension (libxml) is required. PHP 7.4 or newer is recommended.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“LeKeyLinks” is open source software. The following people have contributed to this
plugin.

Contributors

 *   [ 老蒋和他的小伙伴 ](https://profiles.wordpress.org/laobuluo/)

[Translate “LeKeyLinks” into your language.](https://translate.wordpress.org/projects/wp-plugins/lekeylinks)

### Interested in development?

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

## Changelog

#### 1.0.6

 * Plugin Check: Tested up to 7.1; use %i for table names; remove report markdown
   from plugin root

#### 1.0.5

 * Plugin Check: English readme, Requires WP 6.2+, translators comments, output 
   escaping
 * Plugin Check: prefixed globals, dbDelta/custom-table phpcs notes, remove load_plugin_textdomain
 * Link URLs limited to http/https; admin capability checks retained

#### 1.0.4

 * Security: admin write actions require manage_options; link URLs limited to http/
   https
 * Compliance: ABSPATH guards, Domain Path / Requires headers, uninstall.php, dbDelta
 * Duplicate keyword check; max_replace clamped to 0–100

#### 1.0.3

 * Per-post link limit; skip pre/code regions; performance and PHP 8.2 compatibility

#### 1.0.2

 * Keyword list transient cache; per-post skip panels; excerpt replacement; rel 
   extras

#### 1.0.1

 * Settings: master switch, bold links, link color

#### 1.0.0

 * Initial release

## Meta

 *  Version **1.0.6**
 *  Last updated **2 days ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.2 or higher **
 *  Tested up to **7.1.3**
 *  PHP version ** 7.0 or higher **
 * Tags
 * [automation](https://wordpress.org/plugins/tags/automation/)[content](https://wordpress.org/plugins/tags/content/)
   [keywords](https://wordpress.org/plugins/tags/keywords/)[links](https://wordpress.org/plugins/tags/links/)
   [seo](https://wordpress.org/plugins/tags/seo/)
 *  [Advanced View](https://wordpress.org/plugins/lekeylinks/advanced/)

## Ratings

No reviews have been submitted yet.

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

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

## Contributors

 *   [ 老蒋和他的小伙伴 ](https://profiles.wordpress.org/laobuluo/)

## Support

Got something to say? Need help?

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