BACK TO DIRECTORY

TC Comment Out

by Tracy Rotton

4.5
(2 ratings)

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.

[comment]This text will be commented out with HTML comments.[/comment]

[comment type="hidden"]This text will not even be sent to the browser.[/comment]

Plugin Details

Active Installs
60
Total Downloads
6,072
Version
2.0.0
Requires WP
2.5
Requires PHP
5.3.0
Tested Up To
5.4.21
Added
2011-04-25
Last Updated
2020-06-14 1:45am GMT

Ratings

5
1
4
1
3
0
2
0
1
0