Skip to content

Instantly share code, notes, and snippets.



Last active Apr 29, 2020
What would you like to do?
// Retrieve the most commmon searches for the
// Default engine from the past thirty days.
$statistics = \SearchWP\Statistics::get_popular_searches( [
'days' => 30,
'engine' => 'default',
] );
// Display the results in a <table>.
\SearchWP\Statistics::display( $statistics );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.