Hide Broken Shortcodes
Prevent broken shortcodes from appearing in posts and pages.
Overview
Compatibility
Installation instructions
Customer support & learning resources
Changelog
Main benefits
Prevents unhandled shortcodes
Hides shortcode tags
Displays enclosed text
Customizable display options
Developer-friendly hooks
About this plugin
Author: Scott Reilly
Categories: Content Management
Version: 1.9.4
Last updated: 10-10-2021
WordPress version: 2.5
Tested up to: 5.8.10
PHP version required: false
Languages: Deutsch (Sie), Deutsch
Tags:
Learning resources: View resources
Overview
This WordPress plugin is designed to enhance the user experience by preventing unhandled or incorrectly defined shortcodes from displaying unsightly or potentially sensitive code on your site. When a shortcode is either deactivated or contains errors, rather than displaying the raw shortcode, this plugin ensures that either nothing is shown in its place or the enclosed content remains visible without the shortcode tags. This helps maintain a clean and professional appearance for your site. Additionally, the plugin provides hooks for developers to customize the behavior, including the `hide_broken_shortcode` hook for defining what appears when a broken shortcode is encountered, and the `hide_broken_shortcodes_filters` for managing text filters to detect potential shortcode errors. Comprehensive developer documentation is available to guide further customizations.
Prevents Unhandled Shortcodes from Appearing
- Ensures that unprocessed shortcodes do not appear on the site.
- Improves the visual appeal by removing unsightly code-like text.
- Enhances security by preventing potential exposure of sensitive information.
Handles Self-Closing Shortcodes Gracefully
- Removes the shortcode tag and its attributes from the content.
- Displays nothing in place of the unhandled self-closing shortcode.
Manages Enclosing Shortcodes Effectively
- Displays the enclosed text or markup without showing the shortcode tags.
- Ensures that the content remains readable and visually appealing.
Customizable via Hooks
- Provides hooks to customize the display of broken shortcodes.
- Allows developers to define custom filters to detect potential broken shortcodes.