Em3 Hide Comments

Ever written a post where you’d like to leave notes for yourself that readers can’t see - even if the choose to view your source? I did when I wrote a little quiz and I wrote a plugin to allow me to do just that.

The Variables
N/A.
 
The Code
View it as a text file so you can read it first - save this as em3_hide_comments.php and upload it to your wp-content/plugins folder.
 
The Notes
Nothing much to add. It’ll automatically hide any comment that starts with <– and ends with //–>. That’s all there is to it really.
 
The Instructions
To use the plugin, save the text file in wp-content/plugins as em3_hide_comments.php and activate it.

Leave a Reply