VizRED Digital

Helping businesses all over the world get found online.

  • Home
  • About
    • About Vizred
    • Meet The Team
  • Services
    • Social Marketing
      • Social Media Training
    • Local Search Marketing
      • Google Places Optimization
      • Local Directories Submission
    • Mobile Marketing
      • Text Message Marketing
      • QR Code Marketing
    • Social Media Consulting
      • Blogger Outreach
      • Facebook Contest
    • Web Development
      • Membership Sites
      • Q&A Forums
    • Social Media Public Speaker
    • Search Engine Optimization – SEO
  • Portfolio
  • In The Media
  • Blog
  • Contact Us
    • Request Call Back
  • Support
    • Q&A Forum
    • WordPress Tips
    • Video Tutorials
  • Español

Rename Plugins When You Customize Them

What do we do when we need to add a new feature to a WordPress site and we find a plugin that does almost exactly everything we need of it? What if we know a little code tweak will turn that plugin into the exact super plugin we need?

  • We can ask the plugin developer to add the feature.
  • We can pay someone to edit the plugin for us.
  • We can edit the plugin and add the feature ourselves.

Either way, the plugin needs to be edited.

When we customize a plugin we need to safeguard our code edits from being overwritten when the plugin’s original developer releases an update.

The best way to protect our plugin customizations is to rename the plugin.

How do we rename a plugin?

We rename the plugin folder and edit the main plugin file. The main plugin file will be a PHP file and will contain the line “Plugin Name:” near its top.

Look at the screenshot of the file for the plugin Hello Dolly, hello.php.

Rename plugins if you edit their code!

Rename plugins if you edit their code!

Look where the above image says “Plugin Name: Hello Dolly“. Change that name, Hello Dolly, to Hello Polly and WordPress suddenly sees a new plugin called Hello Polly.

When a plugin is renamed its files can be edited and the new plugin activated.

Never have both the old and new plugin active simultaneously in the same site.

When you want to activate both the old and new plugins in the same site, rename the functions and classes used by the new plugin.

Keep the old plugin installed somewhere so you can be alerted to updates. Those updates might add the same feature you’ve added to the plugin or may be for bug fixes and security fixes that you need to be aware of.

Sharing is caring!

Filed Under: Developers Beware!

About Lee

VizRED co-founder. Blogger extraordinaire. WordPress plugin developer. WordPress theme developer. Spreadsheet magician. Lee loves techy stuff and sci-fi.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Blanca Wins Award At Latism National For Best Inspirational Blogger

Official LATISM Top Bloguera!

VizRED Social Stream

[dc_social_feed id="2042"]

Google Adds HTTPS to Its Search Rank Algorithm

Google now gives greater value to sites that use SSL encryption by default. Sites that use HTTPS connections will now see a light increase in their search result position, for now at least. In the words of Google's Zineb Ait Bahajji and Gary Illyes, Webmaster Trends Analysts, [over] the past few … [Read More...]

Be Good to Your Theme, Give it a Child

… [Read More...]

Rename Plugins When You Customize Them

What do we do when we need to add a new feature to a WordPress site and we find a plugin that does almost exactly everything we need of it? What if we know a little code tweak will turn that plugin into the exact super plugin we need? We can ask the plugin developer to add the feature. We can … [Read More...]

© Copyright 2013 ViZRED Digital Media · All Rights Reserved · Privacy Policy