Want a Website Analysis?

Learn how to increase visitor action, reduce site confusion for new visitors, and get those new visitors returning back for more! Get BWI's Usability and Design Analysis.

Hacking a WordPress Plugin, Version 100

By Robert Campbell on Monday, August 3rd, 2009 Print This Post
Previous: Boss Cart Contest Winner
Next: Today’s Read

This is a quick little tip for you WordPress users that like to hack or change your plugins. If you are like me, you often end up hacking or customizing the code within some of your plugins. What happens when that plugin version has been updated by the author though, and you just clicked update? Ouch! You just lost the changes you made.

What I Used To Do

What I used to do to avoid this was keep a text file in the plugin folder that had notes of the changes. That used to work, when I remembered it was there. Being that this is in the Used To Do paragraph, obviously I didn’t always remember. More like hardly ever.

What I Do Now

What I do now while editing the plugin is change the plugin version to 100. It’s easy to do. Just look for the version number in the top of the main plugin php file. It should be in the remark. Then change it to 100.

screenshot of plugin page

Now when there is a plugin update, you can see right away that you made a change or not  by looking at the versions numbers. I have been doing this for about a month now, and I haven’t messed one up yet. My hack? Version 100.

Get usability and design tips

Like this post? Get more website tips delivered straight to you by email. Full feed artiles are delivered, and are managed by Google's Feedburner service.

Be the first to comment!

Get a detailed anaylysis of your website: BWI's Web Usability and Design Analysis

Just Posted! HTML and CSS Cheatsheet

Related

Category: Code, Wordpress Tags: , , ,

Bookmark and Share

Leave a Comment

Subscribe without commenting

Return to top of page