O'Reilly logo

WordPress 2.7 Complete by Hasin Hayder, April Hodge Silver

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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:

  1. Remove the widget from your sidebar and deactivate both plugins.
  2. 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.
  3. Delete the widget's plugin PHP file from your wp-content/plugins folder.
  4. Activate your "new" Capture Searched Words plugin.

Once these steps are done, you'll see the widget ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required