WP Manifestindependent plugin directory
manifest / media / wp-video-embed-cleanup

WP Video Embed Cleanup

Scan and fix Vimeo and YouTube iframe embeds in your posts. Converts them to clean URLs on seperate lines for correct WordPress Classic Editor oEmbed.

by David Brabyn · github.com/dbrabyn/wp-video-embed-cleanup · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/dbrabyn/wp-video-embed-cleanup/archive/refs/heads/main.zip

From the readme

Scan and fix Vimeo and YouTube iframe embeds. Converts them to clean URLs for better performance via WordPress oEmbed. Many users copy embed codes directly from Vimeo or YouTube, which includes iframe markup, responsive wrapper divs, and scripts that hurt page performance. This plugin helps you find and fix these embeds across your entire site. What it does: Scans all published posts, pages, and custom post types for video iframe embeds Shows detected embed patterns with examples Side-by-side diff view: see original vs cleaned content before applying changes Converts iframe embeds to clean URLs (e.g., https://vimeo.com/123456789) WordPress then handles these URLs via oEmbed for optimized playback Removes unnecessary Vimeo player.js script tags Cleans up responsive wrapper divs (56.25% padding hack) Preserves Vimeo unlisted video hash parameters (?h=abc123) Supported platforms: Vimeo (player.vimeo.com/video/...) including unlisted videos YouTube (youtube.com/embed/...) YouTube Privacy Enhanced (youtube-nocookie.com/embed/...) How to use: 1. Install and activate the plugin 2. Go to Tools → WP Video Embed Cleanup 3. Review the scan results and detected patterns 4. Cl

Read the full README on GitHub →