Title: Custom URL Replacer
Author: Hyperspective
Published: <strong>2025 年 4 月 2 日</strong>
Last modified: 2025 年 4 月 2 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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

# Custom URL Replacer

 由 [Hyperspective](https://profiles.wordpress.org/hyperspective/) 開發

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

 * [詳細資料](https://tw.wordpress.org/plugins/custom-url-replacer/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/custom-url-replacer/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/custom-url-replacer/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/custom-url-replacer/#developers)

 [技術支援](https://wordpress.org/support/plugin/custom-url-replacer/)

## 外掛說明

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.

## 螢幕擷圖

[[

[[

[[

## 安裝方式

 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.

## 常見問題集

### 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”.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Custom URL Replacer〉的開發相關工作。

參與者

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

[將〈Custom URL Replacer〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/custom-url-replacer)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/custom-url-replacer/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/custom-url-replacer/)，或透過
[RSS](https://plugins.trac.wordpress.org/log/custom-url-replacer/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/custom-url-replacer/)。

## 變更記錄

#### 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.

## 中繼資料

 *  版本 **1.0.1**
 *  最後更新 **2 年前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 5.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.7.11**
 *  語言
 * [English (US)](https://wordpress.org/plugins/custom-url-replacer/)
 * 標籤:
 * [content](https://tw.wordpress.org/plugins/tags/content/)[external](https://tw.wordpress.org/plugins/tags/external/)
   [links](https://tw.wordpress.org/plugins/tags/links/)[replacement](https://tw.wordpress.org/plugins/tags/replacement/)
   [url](https://tw.wordpress.org/plugins/tags/url/)
 *  [進階檢視](https://tw.wordpress.org/plugins/custom-url-replacer/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](https://wordpress.org/support/plugin/custom-url-replacer/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/custom-url-replacer/reviews/)

## 參與者

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

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/custom-url-replacer/)