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

PlaceHodor

描述

Substitute / replace missing images by a default image.

The plugin will (try to) display / generate the good size (width and height) of the image missing.
You can choose to replace the image by one picture uploaded in the Placehodor settings page.
Or you can choose to replace the images missing by images from the placeholder webservices “Placeholder.com”, “Placeimg.com” or “Picsum.photos”.

With 1.2.0, the plugin will try to replace images broken from external source and also manage image loaded after the document was ready (by ajax for example).
The images missing in Gutenberg will also be replaced.
Big thanks to Pat OL for the help in debugging :]

Since 1.1.0, you can choose to set a default thumbnail to all the posts that are not set.

You can contact me :

  • My blog: https://xuxu.fr/contact
  • My website : https://www.xuan-nguyen.fr
  • My Twitter account: https://twitter.com/xuxu

螢幕截圖

  • You have 3 modes of substitution available : Solo / Placeholder.com / Picsum.photos
  • Upload the image that will substitute the images missing
  • This image will substitute the images missing
  • Use the webservice "Placeholder.com" (options: text, text color, background color)
  • Use the webservice "Picsum.photos" (options: normal, grayscale, blur)
  • Before PlaceHodor set
  • After PlaceHodor set
  • Activate a default thumbnail for the posts
  • A default post thumbnail is set

安裝

  1. Extract and upload the directory placehodor to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Check if Permalink setting is not set on “Plain”

常見問題

Not yet

Wait for it.

評價

2022年3月9日 1 reply
... on broken images or images removed from Media Library. Little enhancement suggestion: Option for something like a little JS-snippet, that removes the former figcaption if set. (just a simple nextsibling and remove combination) Nice 🙂
閱讀全部3個評價

貢獻者及開發者

“PlaceHodor” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

PlaceHodor 外掛目前已有 1 個本地化語言版本。 感謝所有譯者為這個外掛做出的貢獻。

將 PlaceHodor 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.2.0

  • Replace images broken from external sources
  • Replace images broken in Gutenberg

1.1.0

  • Can display a random post thumbnail if this option is activated
  • Debug display random thumbnail
  • Code Rework

1.0.0

  • Hello world!
  • first Release.