-
-
Save searchwpgists/4048f09fef581011542688045c46d70d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// @link https://searchwp.com/documentation/classes/searchwp-statistics/ | |
// 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