Title: Custom URL Replacer
Author: Hyperspective
Published: <strong>2. april, 2025</strong>
Last modified: 2. april, 2025

---

Søg plugins

Dette plugin **er ikke blevet testet med de seneste 3 større udgivelser af WordPress**.
Det vedligeholdes eller understøttes muligvis ikke længere og kan have kompatibilitetsproblemer,
når det bruges med nyere versioner af WordPress.

![](https://ps.w.org/custom-url-replacer/assets/icon-256x256.png?rev=3265929)

# Custom URL Replacer

 Af [Hyperspective](https://profiles.wordpress.org/hyperspective/)

[Download](https://downloads.wordpress.org/plugin/custom-url-replacer.1.0.1.zip)

 * [Detaljer](https://da.wordpress.org/plugins/custom-url-replacer/#description)
 * [Vurderinger](https://da.wordpress.org/plugins/custom-url-replacer/#reviews)
 *  [Installation](https://da.wordpress.org/plugins/custom-url-replacer/#installation)
 * [Udvikling](https://da.wordpress.org/plugins/custom-url-replacer/#developers)

 [Support](https://wordpress.org/support/plugin/custom-url-replacer/)

## Beskrivelse

Custom URL Replacer scans your post content for anchor tags where the visible text
exactly matches the full URL. If the URL is external to your site, it replaces the
text with a custom string. Additionally, if the “Open in New Tab” setting is enabled,
the plugin forces all external links to open in a new tab by adding target=”_blank”
and rel=”noopener noreferrer” automatically. A settings page is provided under the
Tools menu so you can customize the replacement text and toggle the new tab option.

## Skærmbilleder

[[

[[

[[

## Installation

 1. Upload the plugin files to the `/wp-content/plugins/custom-url-replacer` directory,
    or install the plugin through the WordPress plugins screen by uploading the ZIP
    file.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Configure the plugin settings by navigating to Tools  Custom URL Replacer.
 4. The plugin will automatically process your post content and update anchor texts
    that exactly match external URLs, and optionally update all external links to open
    in a new tab.

## FAQ

### How does Custom URL Replacer work?

It scans post content for anchor tags. If an anchor’s text exactly matches its href(
and that URL is external), the plugin replaces the text with a custom string. When
the “Open in New Tab” option is enabled, all external links will have target=”_blank”
and rel=”noopener noreferrer” added automatically if not already set.

### How can I change the replacement text?

Go to Tools  Custom URL Replacer in your WordPress admin area and update the “Replacement
Text” field.

### Can I force all external links to open in a new tab?

Yes. When the “Open in New Tab” option is enabled, all external links in your post
content will be modified to include target=”_blank” and rel=”noopener noreferrer”.

## Anmeldelser

Der er ingen anmeldelser for denne widget.

## Bidragsydere & udviklere

“Custom URL Replacer” er open source-software. Følgende personer har bidraget til
dette plugin.

Bidragsydere

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

[Oversæt “Custom URL Replacer” til dit eget sprog.](https://translate.wordpress.org/projects/wp-plugins/custom-url-replacer)

### Interesseret i udvikling?

[Gennemse koden](https://plugins.trac.wordpress.org/browser/custom-url-replacer/),
tjek [SVN repository](https://plugins.svn.wordpress.org/custom-url-replacer/), eller
abonner på [udviklerloggen](https://plugins.trac.wordpress.org/log/custom-url-replacer/)
via [RSS](https://plugins.trac.wordpress.org/log/custom-url-replacer/?limit=100&mode=stop_on_copy&format=rss).

## Ændringslog

#### 1.0.1

 * Added a sanitization callback for register_setting() to ensure all settings are
   properly sanitized.
 * Replaced parse_url() with wp_parse_url() for better compatibility.
 * Updated functions, options, and admin page elements to use the unique prefix “
   currep_”.
 * Improved nonce verification and data sanitization.
 * Added functionality to force all external links to open in a new tab when the
   setting is enabled.
 * General code improvements for enhanced security and compatibility.

## Meta

 *  Version **1.0.1**
 *  Senest opdateret **1 år siden**
 *  Aktive installationer **Færre end 10**
 *  WordPress-version ** 5.0 eller højere **
 *  Testet op til **6.7.7**
 *  Sprog
 * [English (US)](https://wordpress.org/plugins/custom-url-replacer/)
 * Tags
 * [content](https://da.wordpress.org/plugins/tags/content/)[external](https://da.wordpress.org/plugins/tags/external/)
   [links](https://da.wordpress.org/plugins/tags/links/)[replacement](https://da.wordpress.org/plugins/tags/replacement/)
   [url](https://da.wordpress.org/plugins/tags/url/)
 *  [Avanceret visning](https://da.wordpress.org/plugins/custom-url-replacer/advanced/)

## Bedømmelser

Der er endnu ikke indsendt nogen anmeldelser.

[Din anmeldelse](https://wordpress.org/support/plugin/custom-url-replacer/reviews/#new-post)

[Se alle anmeldelser](https://wordpress.org/support/plugin/custom-url-replacer/reviews/)

## Bidragsydere

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

## Support

Har du noget at sige? Har du brug for hjælp?

 [Vis supportforum](https://wordpress.org/support/plugin/custom-url-replacer/)