WebberZone Link Warnings adds accessible warnings to external links and target="_blank" links in your WordPress content. It supports inline visual indicators, modal confirmation dialogs, and redirect interstitial screens — or combinations of these.
Requirements
- The latest three versions of WordPress
- PHP 7.4 or later
Installation
From the WordPress dashboard
- Navigate to Plugins > Add New.
- Search for “WebberZone Link Warnings”.
- Click Install Now, then Activate.
Manual upload
- Download the plugin archive from GitHub releasesOpens in a new window or WordPress.org.
- Upload the
webberzone-link-warningsfolder to/wp-content/plugins/. - Activate the plugin from the Plugins screen.
First-run wizard
On first activation, an admin notice appears offering a guided setup wizard. It walks through the core decisions:
- Warning method — inline indicators, modal dialog, redirect screen, or a combined approach.
- Link scope — external links only, or external links plus internal links opening in a new tab.
- Visual indicator — icon, text, both, or screen-reader-only.
- Modal settings — title, message, and button text (if using a modal method).
- Redirect settings — message and countdown duration (if using a redirect method).
You can dismiss the wizard and configure settings manually at any time.
Manual configuration
All settings are available at Settings > Link Warnings. The settings page is organised into three tabs:
- General — warning method, link scope, and enabled post types.
- Display — inline indicator options, modal dialog text, and redirect screen text.
- Advanced — excluded domains.
See the Settings Reference for a full description of every option.
How content processing works
WebberZone Link Warnings does not modify your stored content. It filters rendered output using the the_content and the_excerpt hooks at priority 999, which means it runs after most other content filters.
For each <a> tag in the output, the plugin:
- Checks whether the current post type is enabled in settings.
- Determines whether the link is external by comparing its host against the site host and the excluded domains list.
- Applies scope rules — external links only, or external links plus internal
target="_blank"links. - Adds CSS classes (
wzlw-processed,wzlw-external) for styling. - Appends the configured screen reader text to any existing
aria-labelattribute. - For modal and redirect methods, adds
data-wzlw-external,data-wzlw-url, anddata-wzlw-redirect-urlattributes used by the frontend JavaScript. - For inline methods, appends visual indicator markup (icon, text, or both) inside the link.
The plugin uses WordPress’s native WP_HTML_Tag_Processor class for HTML parsing, which avoids regex-based content manipulation for the structural changes.
Warning methods at a glance
| Method | Behaviour |
|---|---|
| Inline | Adds a visual indicator (icon, text, or both) and screen reader text inside the link. No click interception. |
| Modal | Intercepts clicks on external links and shows a confirmation dialog. The user can continue (opens in a new window) or cancel. |
| Redirect | Intercepts clicks and navigates to an interstitial page with a countdown timer before redirecting to the external URL. |
| Inline + Modal | Combines inline indicators with the modal dialog on click. |
| Inline + Redirect | Combines inline indicators with the redirect interstitial on click. |
What happens on deactivation
Deactivating the plugin removes all transients, flushes the rewrite rules cache, and clears the object cache. Your content is unaffected — links return to their original rendered state because the plugin never modifies stored content.
Installing Auto-Close
Installing Top 10
Installing Knowledge Base