[WordPress] 外掛分享: i=== URLs Editor

前言介紹

  • 這款 WordPress 外掛「i=== URLs Editor」是 2012-02-07 上架。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2012-02-08,距離現在已有 4834 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.2 以上版本才可以安裝。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

tufto |

外掛標籤

src | href | link | absolute | function |

內容簡介

之前:
http://example.com/wp-content/themes/twentyten/style.css

之後:
/wp-content/themes/twentyten/style.css

或者:

之前:
http://example.com/wp-content/themes/twentyten/style.css

之後(加上 “https”):
https://example.com/wp-content/themes/twentyten/style.css

如果您正在尋找自動將絕對網址轉換為相對網址的外掛程式,或者尋找可更改 src 和 href URL 屬性的 URLS 的外掛程式,請查看我的其他外掛程式。

我編寫此外掛程式是因為我需要一個 WordPress Multisite 上已上傳圖片的基礎路徑,換句話說,我需要一個沒有域名的伺服器根目錄的 URL。您可能因為相同的原因,或者其他原因,發現這很有用。

在將此代碼複製並添加到您的代碼之前,請記住可能會有未來的更新。將代碼保存在已啟用的外掛程式中,可以確保您收到通知。

原文外掛簡介

Before:
http://example.com/wp-content/themes/twentyten/style.css
After:
/wp-content/themes/twentyten/style.css
OR:
Before:
http://example.com/wp-content/themes/twentyten/style.css
After (adding “https”):
https://example.com/wp-content/themes/twentyten/style.css
If you are looking for a plugin that automatically converts absolute URLs to relative URLs, or for a plugin that changes URLS for src & href URL attributes check out my other plugin.
I wrote this plugin because I needed a basepath for uploaded images for my WordPress Multisite. In other words, I needed a URL to the server root without the domain. You may find this useful for the same reason, or perhaps another.
Before you copy this code and add it into your own, keep in mind that there may be future updates. Keeping the code within an activated plugin will make sure you’re notified.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「i=== URLs Editor」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


最新版本

延伸相關外掛(你可能也想知道)

暫無相關外掛推薦。

文章
Filter
Apply Filters
Mastodon