How 4 Lines of Code Can Change Online Advertising

With third party cookies being blocked by most browsers and Chrome set to follow with Google rolling out FLoC (Federated Learning of Cohorts) to uphold people’s privacy, WordPress have for the first time since we can remember exercised some of their might.

40% of the worlds websites run on WordPress. Crazy right! And, WordPress just announced plans to disable FLoC using the following four lines of code, which will cause the blogging platform to issue a HTTP request header tells the browser that FLoC should be disabled for the site.

function disable_floc($headers) {
 $headers['Permissions-Policy'] = 'interest-cohort=()';
 return $headers;
 add_filter('wp_headers', 'disable_floc');

Just 4 lines of code is going to severely change online advertising.