WordPress - Remove prefetch links

lorro Aug 1st, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand