Home Tutorials Error-proof your plugin integrations!

Error-proof your plugin integrations!

Author

Date

Updated on

Category

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.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Recent posts

The Deeper Meaning and Purpose Behind Shapes in Web & Graphic Design

Sometimes in web design, a clean website is often the best choice for certain clients. Instead of elaborate backgrounds or too many aesthetic choices,...

How to Easily Design a Website Without Coding

Are you looking to build a website and you don’t know how to code? Online web design services are helpful to create website templates...

The importance of SSL Certificates as part of a web hosting package

Building a successful business requires trust, and gaining trust can be difficult especially when you run a business where it is taken for granted...

How Can Domain Name Extensions Influence Your Brand Name?

Are domain name extensions important in naming your brand? The shortest answer is "Yes." In today's online world, it is the first thing that...

Domain Name Generation Tips for Business in the Teen Niche

Choosing a domain name is important for every business; how much more when you want to choose a name for a niche site like...

Recent comments