Description
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 “Placehold.co”, “Picsum.photos”, “Doodleipsum.com” or “LoremFlickr.com”.
Working on a staging or local copy? Set the origin site (e.g. your production site) in the settings: a media missing here is first looked up there, at the same path, and the visitor is redirected to it when it exists. The substitute image is only used when the file is missing on the origin too. Missing documents of the uploads folder (pdf, videos, Office files, zip) are looked up on the origin as well.
You can contact me :
- My blog: https://xuxu.fr
- My Twitter account: https://twitter.com/xuxu
Short Description
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.
Installation
- Extract and upload the directory
placehodorto the/wp-content/plugins/directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
- Check if Permalink setting is not set on “Plain”
FAQ
Not yet
Wait for it.
Screenshots









Changelog
1.8.0
- New “Origin site” setting: a media missing here is first looked up on the origin site (e.g. production, from a staging or local copy) at the same path in the uploads folder, and the visitor is redirected to it when it exists; the substitute image is used otherwise
- Existence check by HEAD request, cached a week when found and an hour when missing (network errors and 5xx are not cached)
- When an origin is set, missing documents of the uploads folder (pdf, mp4, webm, mov, mp3, zip, Office files) are looked up on the origin too
- Nothing to serve: plain 404 instead of a wp_die page
1.7.5
- Fix 404 pages: the 404_template filter now returns the incoming template, so the theme’s 404 template is used again (block themes were falling back to the index template)
1.7.4
- Fix loremflickr.com 500 errors: exclude from lnjph_rand UUID parameter (same as placehold.co)
- Remove PlaceHodorSub from admin bundle to prevent onerror loops in the admin
- Add “Service unavailable” error state on sample preview when remote service is unreachable
1.7.3
- Fix solo mode: “Add image” button now works (wp.media frame closure fix, media-views dependency)
- Add CSS spinner loader while gallery thumbnail loads after media selection
- Fix lnjph_rand UUID parameter causing 500 errors on placehold.co (Cloudflare blocks it)
- Add test pages for development
1.7.2
- Replace server-side image proxy with wp_redirect for external placeholder services
- Fix admin JS for jQuery 3.x and wp.media initialization
1.7.1
- Fix lnjph_sub_thumbnail select: replace PHP boolean keys with string ‘0’/’1′ (PHP 8 compatibility)
- Fix lnjph_render_field: empty() incorrectly treated ‘0’ as empty, breaking the No/Yes select display
1.7.0
- Add LoremFlickr.com as a new placeholder service (keyword-based photos, grayscale option)
1.6.0
- Solo mode: support multiple substitute images with random selection
- Migrate existing single substitute image to the new format automatically on update
1.5.0
- Fix fatal PHP errors in replace rewrite handler (self:: outside class context, wrong class casing)
- Fix JS infinite loop on broken images (addClass with leading dot)
- Replace deprecated DOMSubtreeModified with MutationObserver
- Remove defunct placeimg.com service (settings, fields, JS)
- Merge duplicate get_filesystem() methods
1.4.0
- Make it works on multi site WordPress with sub directory
1.3.4
- Fix get substitute image
1.3.3.2
- Try fix description plugin length
1.3.3.1
- Support .gif in solo mode
- Fix description plugin length
1.3.3
- Add DoodleIpsum.com service
- Add random var to try set / get random image each service call
1.3.2
- Fix select font display
1.3.1
- Update description and tags
- Clean old scripts
1.3.0
- Replace external service down (placeholder.com by placehold.co)
- Remove external service down (placeimg.com)
1.2.0
- Replace image broken from external source
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.
