Created
May 10, 2019 16:35
-
-
Save Igosuki/7660e0477a3b3f658d3121052cfc2127 to your computer and use it in GitHub Desktop.
Wordpress widget
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 | |
global $wpdb; | |
$current_user_id = get_current_user_id(); | |
$search_history = $wpdb->get_results("SELECT * FROM {$wpdb->prefix}relevanssi_log WHERE user_id = {$current_user_id} ORDER BY time DESC"); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment