Combining the widget and the plugin
In the case of this particular widget, it would be most handy if it were made available along with the plugin itself. That way, people who want to capture searched words only have to install one plugin to get all of the functionality.
Doing this is easy. Take the following four steps:
- Remove the widget from your sidebar and deactivate both plugins.
- Copy and paste the three functions and one hook from the widget plugin into the Capture Searched Words plugin, and save it. You may also want to change the plugin's version number and description.
- Delete the widget's plugin PHP file from your
- Activate your "new" Capture Searched Words plugin.
Once these steps are done, you'll see the widget ...