This Quick Guide walks you through searching through all the files in a WordPress plugin using the Sublime Text code editor. This process works not only for searching through WordPress plugin folders, but for searching the contents of any folder using Sublime Text.
Why You’d Need to Search Through a WordPress Plugin Folder’s Entire Contents
A plugin may have many thousands of lines of code across dozens of PHP files, organized however made sense to the plugin developers at the time. As a result, one of the hardest things about debugging or extending WordPress plugins is often simply finding where a piece of code lives.
If you think a particular plugin function’s causing problems, for example, you might want to find not only where that function is defined, but every place that function is called. The only good way to do this is to search the entire plugin folder using a text editor like Sublime Text.
All of this is true for WordPress themes, as well—or any folder with too many files to search through one-by-one. Fortunately, like any good text editor, Sublime Text makes it easy to search through a folder’s contents. This video Quick Guide shows you how.
Here’s a text summary: