Home Tutorials Error-proof your plugin integrations!

Error-proof your plugin integrations!



Updated on


How many times have you installed a plugin, integrated it with your theme, decide to uninstall it, but then forget to remove its function within the theme?

Once you’ve uninstalled a plugin, you have to go back to your WordPress theme to remove any trace of it, or else your blog would return “function doesn’t exist” errors.

In case you forget to remove all traces of a certain un-installed plugin, this is a quick tip to error-proof your future un-installation so your readers wouldn’t have to run across “function doesn’t exist” errors.

Let’s say you want to use the Author Highlight plugin, which adds a class to your comments, to style comments made by you. It wants you to add <?php author_highlight(); ?> to somewhere in the comments.php file. Instead of doing just that, here’s what you should add:

<?php if(function_exists(”author_highlight”)) author_highlight(); ?>

Don’t copy and paste the codes above, it will not work. Type it out.


Please enter your comment!
Please enter your name here

Recent posts

5 WordPress Plugins to Increase Your Website Speed

 And if you’re an online entrepreneur, you probably know that making people wait is bad for your eCommerce business too — really bad.I mean,...

How to Show Only Images that the User Has Uploaded in WordPress

When using WordPress with multiple authors, many things need to be taken into consideration. The default permissions system leaves much to be desired, and...

Oxygen Builder Review

Free from all sorts of coding hassles and an abundance of options that cater to the users’ needs, Oxygen 2.0 is probably the best...

Basic Guide to Online Backup

A Basic Guide to Online Backup You may have heard of it, know you need it, but what exactly is it? Online backup is the...

Web Hosting Hub Review

How did it begin? Based in Virginia Beach, Web hosting hub has been on the market since 2001. If it were not for Web Hosting...

Recent comments