MainWP to Cloudflare Bridge has had an update; in this release, we deal with one issue and one improvement to the plugin.
I get to close an issue I have been testing a fix for a few months, which appears to be working well.
Domain Name handling will now use a 24-hour cached version of https://publicsuffix.org, specifically the https://publicsuffix.org/list/public_suffix_list.dat and will use this for domains.
In addition to solving the above issue, this is a “live dynamic” solution and should always just work while it still exists
Improvements:
Addition of a new filter to the plugin, allowing you to enquire and use the requests, unique visitors, cached requests, saved bandwidth and threats within other parts of MainWP specifically designed to work with the MainWP Filter mainwp_pro_reports_addition_custom_tokens
$all_analytics = array(
'requests' => $analytics->requests,
'uniques' => $uniq->uniques,
'cached' => $analytics->cachedRequests,
'bandwidth' => $analytics->bytes,
'attacks' => $analytics->threats,
);
//Use add_filter to register the data for custom hook
add_filter('cfmwp_all_analytics_data', function () use ($all_analytics) {
return $all_analytics;
});
PHP