
內容簡介
本地開發,使用線上圖片
如果您是 WordPress 開發人員,您可能需要這個外掛,該外掛會將本地圖片網址轉換為您的線上網站網址。
您可能甚至不想處理圖片。例如:
您不想在版本庫中儲存圖片。也許版本庫只是主題資料夾,保持這樣更合理。
您有10GB的圖片,搬移它們是不切實際且不必要的。
別忘了在外掛設定頁面新增您的製作網站網址
為了轉換本地圖片網址,您需要在以下位置新增您的主機名稱:
設定 > 重新寫入圖片網址
外掛標籤
開發者團隊
原文外掛簡介
Develop Locally, Use Images from Production
If you are a WordPress Developer, you might need this plugin which rewrite your local image url by your production website.
You might not even want to deal with images. Perhaps:
You don’t want the images in your repo. Maybe the repo is just a theme folder and it makes sense to leave it that way.
You have like 10 GB worth of images and it’s impractical and unnecessary to move them around.
Don’t forget add your production hostname to plugin settings page
In order to rewrite your local image, You need to add your hostname to the place below:
Settings > Rewrite Img URL
