| 开发者 | ravenx25 |
|---|---|
| 更新时间 | 2026年11月22日 07:42 |
| 捐献地址: | 去捐款 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/freddy-krueger/.
Default rules. On activation a small default rule set is added, but only for rules whose target page is published on your site, so no dead links are created. Two example sets ship side by side: horror names — Michael Myers, Jason Voorhees, Freddy Krueger, Chucky (Charles Lee Ray), Ghostface (Ghost Face), Pinhead and Cenobites — and neutral site pages — Getting Started, Frequently Asked Questions (FAQ), Contact Us and Privacy Policy. Common human names are only linked as full names, so a bare "Michael" or "Jason" is never linked. Edit or delete any default rule under Link Angel > Keyword Rules.
One shared link limit. Keyword-rule links and automatic title links draw from one budget: 3 links per page in total by default, adjustable under Link Angel > Settings.
Safe HTML handling.
link-angel folder to /wp-content/plugins/, or install the zip from Plugins > Add New > Upload Plugin.linkangel/purge_page_cache action.No. Automatic mode is on by default. Keyword rules are an optional extra layer.
No. Headings (h1 to h6), existing links, code and pre blocks, captions, buttons, form fields, scripts and styles are always skipped, as are all HTML attributes such as image alt text.
Link Angel runs on the_content at priority 10, before WordPress expands shortcodes at priority 11. Shortcodes still in the content at that point, and everything between their opening and closing tags, are protected while linking and restored unchanged, so the output WordPress generates for them afterwards is not linked.
This protection covers shortcode tags only. Anything already rendered to HTML before priority 10 is treated like normal post text and can receive links: dynamic blocks (WordPress renders them at priority 9), and shortcodes or markup that another plugin or theme expands on an earlier filter. Headings, existing links, code, captions, buttons and skip classes are still respected inside that HTML. To keep such output link-free, give its wrapper the no-linkangel class, add data-linkangel="off", or wrap it in <!-- linkangel:off --> and <!-- linkangel:on -->.
Yes. Wrap it in <!-- linkangel:off --> and <!-- linkangel:on -->, or give an element the class no-linkangel (configurable), or add data-linkangel="off" to it.
Tick "Disable auto-linking on this post" in the Link Angel box in the editor sidebar.
Your titles are kept in one cached index, grouped by their first word. For each word on a page, Link Angel checks only the indexed titles that begin with that word, so the matching work grows mainly with the length of the page rather than with the number of posts. It is not completely independent of site size: each linked page view loads the whole index in one database read (bigger on sites with many titles), and words that begin many titles (for example "The") have more candidates to check. The index is rebuilt in the background (WP-Cron) when posts are published, updated or deleted, never during a visitor's page view. While a rebuild is pending, the previous index keeps working, so new or renamed titles are linked once the rebuild finishes. If the index is missing or a rebuild is overdue, Link Angel shows a notice in the admin. Page views do not store anything; at most they queue that background job when one is due.
No. There are no external requests and no tracking of any kind.
The text domain is link-angel-automatic-internal-linking. A template is included at languages/link-angel-automatic-internal-linking.pot. To regenerate it run wp i18n make-pot . languages/link-angel-automatic-internal-linking.pot --slug=link-angel-automatic-internal-linking from the plugin folder with WP-CLI.
linkangel/should_process (bool, WP_Post) decides whether a post is processed.linkangel/linked_content (array, WP_Post) filters the result.linkangel/default_rules (array) changes the default rule set added on activation.linkangel/auto_target_types and linkangel/stopwords tune automatic mode.linkangel/auto_index_limit (int) sets how many posts the title index reads, newest first. The default is 20,000, which keeps memory use bounded on very large sites; return 0 to index every eligible post. When the ceiling applies, the Keyword Rules screen shows the coverage ("covers X of Y eligible posts") and Link Angel screens show a partial-coverage notice.linkangel/auto_index_batch (int) sets how many posts each index-build query reads (default 2000).linkangel/purge_page_cache (action, array of purged cache names) fires after rule or settings changes, for other cache integrations.linkangel/tip_url and the LINKANGEL_TIP_URL constant set the optional tip link.link-angel-automatic-internal-linking to match the plugin slug on WordPress.org (was linkangel).linkangel/auto_index_limit filter changes the ceiling (0 = none). The opt-out check uses a NOT EXISTS subquery.