Skip to content

daveykropf/es-list-user-searches

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

List ElasticSearch User Searches in Wordpress back-end

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages