Needs way to prevent minutely hits on /wp-json/wp-statistics/v2/online

[ad_1]

Plugin Support
Amir

(@amirfallah)

Hi @climatesaver

Thank you for opening this thread.

We will definitely add this feature in future updates so you can manage it through the settings.

In the meantime, you can set the wp_statistics_js_check_time_interval to a very high number according to the guide in the link below to effectively prevent the requests:
Customizing User Online Status Intervals

function custom_js_check_time_interval($check_time) {
// Set the check time interval to 1 day (86,400,000milliseconds)
return 86400000;
}
add_filter('wp_statistics_js_check_time_interval', 'custom_js_check_time_interval');

Thank you for your valuable feedback.
Best regards,

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer