Advertisement
lorro

WordPress - Disable FLoC

Apr 18th, 2021
1,113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.19 KB | None | 0 0
  1. <?php
  2. // WordPress - Disable FLoC
  3. add_filter('wp_headers', 'disable_floc');
  4. function disable_floc($headers) {
  5.   $headers['Permissions-Policy'] = 'interest-cohort=()';
  6.   return $headers;
  7. }
  8.  
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement