Plugin Support
Mehmet
(@gandomi)
Hi @kindnessville,
You’re correct, currently there isn’t an option to auto-refresh the access log on the main dashboard.
I’ll forward this request to our team and keep you updated on any progress.
Thanks for your patience and support.
Best regards,
Mehmet
Thread Starter
ZLC
(@kindnessville)
Thank you, Mehmet. I appreciate the follow-up. At one point, the access log auto-refreshed by default, so I trust it won’t be a huge project to incorporate this feature. I wonder why it was dropped?
In lovingkindness,
Alex
Plugin Support
Mehmet
(@gandomi)
Hello Alex,
Thanks for your message. I’ve passed this to our team, and the task is already in the review queue.
It’s very likely a small issue. Once it’s fixed, I’ll send you a GitHub link so you can apply the hotfix right away, or you can simply wait for the next release if it’s not urgent.
Either way, I’ll make sure you receive the link as soon as it’s ready.
Best regards,
Mehmet
Thread Starter
ZLC
(@kindnessville)
Thank you for following up with me. It’s not urgent, but I’ll happily wait for the GitHub link so I can apply the hotfix whenever it’s ready. I look forward to hearing from you, Mehmet.
Thread Starter
ZLC
(@kindnessville)
Good morning, Mehmet.
I inspected the dashboard Slimstat widget for its ID and asked ChatGPT for some code to auto-refresh it every 30 seconds. Here’s what it gave me to add to my functions.php, and it works! I’m sharing it here in case it helps anyone else who wants to achieve the auto-refresh feature on their dashboard widget:
add_action( 'admin_footer', function () {
?>
<script type="text/javascript">
(function($) {
// Runs every 30 seconds
setInterval(function() {
const widget = $('#slim_p7_02');
// Optional: visual cue during reload
widget.css({ opacity: 0.4 });
// Reload the widget contents only
widget.find('.inside').load(
window.location.href + " #slim_p7_02 .inside",
function() {
widget.css({ opacity: 1 });
}
);
}, 30000);
})(jQuery);
</script>
<?php
});
Replace #slim_p7_02 with whatever the ID is for your Dashboard widget and time 30000 to whatever interval you want.
Plugin Support
Mehmet
(@gandomi)
Hi Alex,
Thank you so much for sharing this. It’s incredibly thoughtful of you, and I’m sure other Slimstat users will find it helpful.
And I have to admit, I love that you had AI write the snippet.
If you have any other ideas or feedback, I’m always here and happy to help.
Best regards,
Mehmet
Thread Starter
ZLC
(@kindnessville)
You and anyone who finds this helpful are welcome! I appreciate your assistance.
In lovingkindness,
Alex