Replace Broken Images

By Kiet Huynh

★ 4.5/5 (4 ratings)1,000+ active installationsVersion 1.04

Alternate image with a default image if source image is not found on posts and pages.

Description

This plugin will help to replace broken images in posts and pages with a default image.

Installation

  1. Upload replace-broken-images to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Upload or select default image in ‘Replace Broken Images’ panel

Screenshots

Changelog

Apr 04th 2026: Security hardening (output escaping, esc_url, esc_attr, esc_js); performance (cache get_option calls, lazy-load media scripts via admin_enqueue_scripts); WP best practices (manage_options capability, text domain, rel=noopener, is_singular guard, this.onerror=null loop prevention)