Skip to content

Must-Use Plugin: smush-archive-guard.php

Location: _project/_web/wp-content/mu-plugins/smush-archive-guard.php

Purpose

Prevents WP Smush Pro from processing images uploaded before 2026-01-15 00:00:00. This protects the large historical image archive from unnecessary reprocessing.

Hook

  • wp_smush_should_smush — Filter that returns false for old attachments

Why It Exists

Re-smushing the entire media library would be extremely time-consuming and resource-intensive on a site with years of content. This guard ensures only new uploads are processed.