Advertisement
majeedraza

WordPress - Remove prefetch links

Aug 1st, 2019
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.22 KB | None | 0 0
  1. <?php
  2.   // remove the non-working prefetch links in the header
  3.   add_action( 'init', 'remove_dns_prefetch' );
  4.   function  remove_dns_prefetch () {      
  5.    remove_action( 'wp_head', 'wp_resource_hints', 2, 99 );
  6.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement