title: replace all youtube iframes before cookie consent accepted
body: <p>This is for the GDPR cookie policy.
  Because youtube use cookies, I have to block the youtube videos, and only grant access if the cookie policy is accepted.</p>
  
  <p>so I need something like:</p>
  
  <pre><code>if(!isset($_COOKIE['consentaccept'])) {
      // replace all iframes from https://www.youtube.com/ with:
      //&lt;div class="youtubeblock"&gt;you must enable cookies to view this video&lt;/div&gt;
  }
  </code></pre>
  
  <p>or maybe you have a better solution</p>
  
  <p>Any ideas?</p>
  
  <p>It is WordPress.</p>