Descripción
Remove Empty Shortcodes helps maintain clean content by removing shortcodes that no longer work or generate output. This commonly happens when:
- You’ve deactivated a plugin that provided shortcodes
- You’re trying different plugins and some left behind inactive shortcodes
- You have shortcodes from plugins that weren’t properly uninstalled
Key Features
- Automatically removes inactive shortcodes from displayed content
- Preserves your original content in the database
- Works with all public post types
- Handles both self-closing and wrapped shortcodes
- Admin scanner to find and review unregistered shortcodes
- On-demand scanning with cached results
- Ignore specific shortcodes you want to keep
- Zero configuration required for automatic removal
How It Works
The plugin checks your content for shortcodes when pages are displayed. If it finds shortcodes that:
- Don’t produce any output
- Aren’t registered with WordPress
- Are empty or inactive
It removes them from the displayed content while keeping your original content intact in the database.
Use Cases
- Clean up content after removing plugins that used shortcodes
- Remove inactive shortcodes without editing posts manually
- Maintain clean content for readers and search engines
- Preserve original content in case you reinstall removed plugins
Capturas




Instalación
- Upload
remove-empty-shortcodesto your/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- That’s it! No configuration needed
FAQ
-
Will this modify my database content?
-
No. The plugin only filters content when it’s displayed. Your original content remains unchanged in the database.
-
What happens if I reinstall a plugin that uses the removed shortcodes?
-
Since your original content is preserved, the shortcodes will start working again automatically when you reinstall the plugin that handles them.
-
Does this work with all shortcodes?
-
Yes, the plugin works with any WordPress shortcode, whether from themes or plugins.
-
Will this affect shortcodes that are working correctly?
-
No. The plugin only removes shortcodes that are either unregistered or produce no output.
-
Is there any configuration needed?
-
No. The plugin works automatically once activated.
-
How do I find unregistered shortcodes on my site?
-
Go to Tools > Empty Shortcodes in your WordPress admin. Click «Run Scan» to search all your content for shortcodes that are no longer registered with WordPress.
-
What does «Ignore» do in the scanner?
-
Ignoring a shortcode adds it to a global ignore list. The scanner will no longer flag that shortcode, and the automatic removal feature will leave it untouched. Use this for shortcodes you intentionally want to keep.
-
Does this work with custom post types?
-
By default the front-end removal covers standard posts and pages. The admin scanner (Tools > Empty Shortcodes) finds shortcodes in all post types. To also clean custom post types automatically on the front end, developers can use the
resc_supported_post_typesfilter to add their post type slugs.
Reseñas
Colaboradores y desarrolladores
«Remove Empty Shortcodes» es un software de código abierto. Las siguientes personas han colaborado con este plugin.
ColaboradoresTraduce «Remove Empty Shortcodes» a tu idioma.
¿Interesado en el desarrollo?
Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.
Registro de cambios
1.2.0
- Added: WordPress Coding Standards + PHPCompatibility gate (
.phpcs.xml.dist,testVersion 7.4-) enforced in CI - Added:
resc_supported_post_typesfilter to extend automatic front-end removal to custom post types - Added: cleanup of plugin options, transients, and user meta when the plugin is deleted (uninstall.php)
- Changed: the admin scanner now queries posts in batches instead of all at once, reducing memory use on large sites (filterable via
resc_scan_batch_size) - Fixed: dead and unregistered shortcodes are now removed wherever post and page content appears on the front end — single views, archives, search, and the blog home — not only on singular views
- Fixed: unregistered shortcodes are stripped from excerpts as well (manual and auto-generated)
- Fixed: the «How It Works» bullet list now renders correctly on the WordPress.org listing
1.1.0
- Fixed: inactive/unregistered shortcodes (for example, layout shortcodes left behind by a deactivated page builder such as WP Bakery) are now removed on the front end, keeping the surrounding text.
- Fixed: the scanner now finds shortcodes in content imported under post types that are no longer registered.
- Fixed: front-end removal now honors the scanner’s Ignore list.
- Fixed: the Run Scan button icon now displays correctly on WordPress 7.0.
- New: choose whether to strip just the shortcode tags (default) or remove the whole block, via the
resc_removal_modefilter. - Maintenance: added an automated unit and integration test suite plus developer tooling.
- Updated WordPress compatibility: requires 6.9, tested up to 7.0.
1.0.0
- Admin page under Tools menu for scanning and managing unregistered shortcodes
- On-demand scanning with progress indicator and cached results
- Two view modes: By Shortcode and By Post
- Context preview showing surrounding text for each shortcode
- Global ignore list for shortcodes you want to keep
- Support for all public post types
- Fixed false positive shortcode detection
- New abstract blue branding
- Restructured plugin with class-based architecture
0.7.0
- Update support for WordPress 6.8
0.6.0
- Added support for multi-line shortcode detection
- Added a banner and icon for the WP plugin repository
- Improved handling of unregistered shortcodes
- Updated shortcode pattern matching
- Removed Composer dependencies
- Enhanced performance and reliability
0.5.0
- Added latest version of PHPStan
- Fixed page content processing
- Updated namespace structure
0.4.0
- Added page post type support
- Fixed subscriber content handling
0.3.0
- Initial public release
- Added standard post type support
- Improved shortcode detection
