Knowing what your users are searching for can be extremely useful and important. In this members-only tutorial we’re going to look at how to create a simple search logging plugin that will record every search query performed on your site. We will be using the WP_Logging class that I released a week or two ago as the main backbone to the plugin.

The WP_Logging class can be downloaded from Github

The complete code written in the tutorial is shown below. Note! I have also built a more complete version, including admin page, that is available for download at the bottom of the page.

You must be logged in and have an active premium membership to view the rest of this content. Register or login from the sidebar.

Join now to gain access to this tutorial and more.

Join Now
  1. corsonr

    The class is really helpful and is very easy to implement, thanks!

    • Pippin

      Great to hear! This tutorial was inspired by your plugin 😉

  2. Yael Reinhardt-Matsliah


    I just wanted to tell you much I am enjoying your tutorials! As a designer and not really a coder, I’ve been wanting to dive deeper into coding and understanding how things actually work in WP, etc, and your tutorials have actually made me excited to dig deeper into the code world! Thanks so much — Yael

    • Pippin

      Glad to hear it!

Leave a Reply

Error: Please enter a valid email address

Error: Invalid email

Error: Please enter your first name

Error: Please enter your last name

Error: Please enter a username

Error: Please enter a password

Error: Please confirm your password

Error: Password and password confirmation do not match