You are reading

Hide a WordPress plugin version

Posted: July 5, 2009 | By: TJ | In Technology | 2 comments

Often times with WordPress plugins, developers will design the plugin to display the plugin name and version number within the header output. This is great for the developers to promote their work however given some of the security implications, it’s not always a great idea, especially given the nature of third-party plugins. A good example of this is the All in One SEO Pack.

While the plugin serves a great function, the header of each document displays the plugin name and version before and after the meta and keyword data. By commenting out a few lines of PHP, we can stop this behavior. Open the all_in_one_seo_pack.php located within the plugin directory. In version 1.5.7, the lines to comment out are 670-675 and the closing header tag on 783. Commenting out the function is as easy as adding 2 forward slashes in front of each line.

Save the changes, clear your cache and hit refresh. For an example of what the plugin output should look like, check out my source on this page.

Comments for this entry

Ron

hi, thanks for this great info! i’m using all in one seo ver. 1.7- which lines should i comment out on this version?

thanks for your help!

Leave your comment



Copyright © 2010. All rights reserved.

This blog is powered by WordPress and proudly hosted by (mt) Media Temple.