Federated Learning of Cohorts (FLoC) is a new advertising-surveillance initiative from Google that seeks to replace third-party cookies with a new user profiling technique that gathers data generated by the browser.
To block FloC on your website, add this snippet to your theme functions.php file:
// ADD THE FLoC BLOCKER
function disable_floc($headers) {
$headers['Permissions-Policy'] = 'interest-cohort=()';
return $headers;
}
add_filter('wp_headers', 'disable_floc');