Easily comment out page and post content using a shortcode. Content is commented out using HTML comment syntax, keeping the content available in the “View Source” window of your web browser.
Simply place the opening shortcode [comment] at the beginning of the text you wish to comment out, and the closing shortcode [/comment] at the end.
If you wish to hide the content entirely from view (so that it is not visible in the browser source), set the optional type attribute to “hidden”. Setting the type attribute to “html” will produce the default behavior, but is not required.
- Place the tc-comment-out directory inside your plugins directory.
- Navigate to the Plugins section of the Dashboard and click “Activate”.
Contributors & Developers
“TC Comment Out” is open source software. The following people have contributed to this plugin.Contributors
- Implemented the “type” attribute allowing users to use HTML comments to hide their content (the default) or to strip it out altogether so that the commented content is NOT viewable when using the browser’s “View Source” option.
- Added GPLv2 license to package.
- Fixed a bug that would break the SGML commenting schema if it encountered a URL containing two dashes in a row. WordPress filters double-dashes in content, but not when they occur in a URL.
- Initial release.