CodeUnwrap – Shortcode Cleanup
Find and remove unwanted shortcodes or complete WordPress blocks in safe batches.
Install in
CodeUnwrap – Shortcode Cleanup adds a screen under Tools where authorized editors can remove a specific shortcode from posts and other editable content types. Enter a shortcode name, choose whether to remove the complete shortcode or preserve its inner content, and let the plugin process content in small AJAX batches.
The plugin can also scan for shortcode tags that are not currently registered. Scan results are presented for review, and nothing changes until specific items are selected. WordPress revisions provide recovery points where supported.
CodeUnwrap can remove complete WordPress blocks by selector, including the block’s rendered HTML and any nested blocks. For example, enter wp:social-links to remove complete Social Icons blocks.
Features
- Preview before and after source content without saving changes or executing shortcodes.
- Clean a specific shortcode by entering its tag name.
- Keep enclosed text or remove the complete shortcode and its inner content.
- Remove complete WordPress blocks by selector, including nested blocks and content.
- Scan editable content for shortcode tags that are no longer registered.
- Review and select affected content before bulk cleanup.
- Process targeted cleanup and scans in small AJAX batches.
- Keep original post modified dates when cleaning, enabled by default.
- Use WordPress capabilities, nonces, sanitization, escaping, and revision-compatible updates.
Written by Joobi from the project's own listing. See the source page
1.3.2
- Updated cleanup previews to skip empty internal post batches and navigate only between matching results.
1.3.1
- Fixed block selector validation in browsers that use the modern regular expression v flag for HTML pattern attributes.
1.3.0
- Added previewable AJAX batch removal for complete WordPress blocks using selectors such as wp:social-links.
- Added support for nested matching blocks and preserving original modified dates during block removal.
1.2.0
- Added read-only before/after previews for targeted cleanup and individual scan results, using the selected cleanup mode.
1.1.2
- Added an explicit database-backup reminder to the installation instructions.
1.1.1
- Renamed the plugin to CodeUnwrap – Shortcode Cleanup with a distinctive WordPress.org slug and matching identifiers.
1.1.0
- Redesigned the administration screen with a clearer cleanup workflow, responsive scan results, and improved progress and selection feedback.
- Added an option, enabled by default, to preserve original post modified dates during cleanup.
1.0.0
- Initial release.
Follow this listing's changes (Atom feed)