WordPress plugin intelligence profile

Media Placeholders

Redirect requests to non-existent uploaded images to a placeholder service like placehold.it or placekitten.com. For use during development.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 3.6
Current version0.9.2
WordPress coverageTested up to WordPress 3.6
Minimum stackWP 3.5 · PHP —
Directory statusactive
Last directory update25 Feb 201511y ago
Active installations60Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 2 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Media Placeholders version 0.9.2 as active, updated 11y ago and tested up to WordPress 3.6.

Overview

About this plugin

com. g. full size vs thumbnail in a gallery), and so it is easier to see which images in a page are related to each other.

com by defining MISSING_UPLOADED_IMAGE_PLACEHOLDER_BUILTIN to be placekitten_color or placekitten_grayscale, or supplying those same values via the missing_uploaded_image_placeholder_builtin filter).

This plugin is for use during development only. g. on Vagrant or XAMPP), or on your staging server.

This plugin is especially useful when working on a team where you share around a database dump but not the uploaded images (which should always be omitted from the code repository), so if you give a database dump to another developer but don’t include the uploaded images, with this plugin enabled they will see a placeholder where the uploaded image appears. This plugin is an alternative approach to what is offered by the Uploads by Proxy plugin.

If you have applied the production database to another environment which lacks the uploaded files, but you know that all images referenced in the database do exist on production, you can define the MISSING_UPLOADED_IMAGE_REDIRECT_SERVER constant or filter missing_uploaded_image_redirect_server to short-circuit the placeholder service and redirect the image request to that server.

php. See #19235. Similarly, make sure that missing uploaded files get served by the WordPress 404 handler, not Apache/Nginx.

conf (or remove it altogether):

# Handle all static assets by serving the file directly. Add directives # to send expires headers and turn off 404 error logging. (js|css|png|jpg|jpeg|gif|ico)$ { expires 24h; log_not_found off; }

You can add support for your own favorite placeholder services by filtering missing_uploaded_image_placeholder.

php or drop it into a mu-plugin:

com/%d/%d/%s', $args['width'], $args['height'], $tags ); return $url; } add_filter( 'missing_uploaded_image_placeholder', 'my_filter_missing_uploaded_image_placeholder', 10, 2 );

Development of this plugin is done on GitHub. Pull requests welcome. Please see issues reported there before going to the plugin forum.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • 404
  • development
  • images
  • placeholders
  • uploads
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 3.6

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 3.6.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to3.6
Minimum requirementsWordPress 3.5 · PHP not listed
Update activity25 Feb 201511y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.