Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 584 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 584 Bytes

es-list-user-searches

Custom build wordpress plugin for saving searched queries into a database and get in the Wordpress back-end an overview of the most common searched queries.

How to save a searched query into the database

You need to call the plugin to save the searched query in the database. For example:

  // Check if the plugin exists / is enabled
  if ( class_exists( 'ES_List_User_Searches' ) ) {
    // Send searched query results
    ES_List_User_Searches::save_search( $searched_query, $total_hits, $site_url );
  }

Note: $site_url is optional