15Debugging

WordPress provides many different ways to help you quickly identify problems with your code. Throughout this chapter, you will learn how to correctly support many different versions of WordPress, how to debug issues with different plugins active, and how to step through code live during runtime. The topics presented in this chapter are a few of the basic things that you are expected to understand to make sure your plugins are bug free, optimized, and ready for whatever WordPress throws at them.

COMPATIBILITY

As a professional WordPress plugin developer, you need to make sure the plugins you create are compatible with whatever kind of WordPress installation they get activated on. This sounds simple enough, but the possibilities and combinations are truly endless.

Supporting Many WordPress Versions

While the latest and greatest versions of WordPress will always provide the best APIs and features, you may not always have the luxury of basing your plugins on it exclusively. In fact, it's more likely you will have no control over what version of WordPress the users of your plugins are ...

Get Professional WordPress Plugin Development, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.