title: Open Graph Meta Tag Overwritting Yoast, WordPress
body: <p>I'm trying to change the <code>og:url</code> content on specific posts but I am unsure how to implement my changes from the functions.php file.</p>
  
  <p>I have tried doing this using the content I have found on the internet but believe it has been updated since then.</p>
  
  <p>I have updated the <code>class-opengraph.php</code> file in the the wordress-seo plugin folder which works, please find my edits below:</p>
  
  <pre><code>public function url() {
    $url = apply_filters('wpseo_opengraph_url',
                          WPSEO_Frontend::get_instance()-&gt;canonical(false));
  
    if (is_string($url) &amp;&amp; $url !== '' ) {
      if (is_page(32721)) {
        $this-&gt;og_tag('og:url', esc_url('testing'));
      } else {
        $this-&gt;og_tag( 'og:url', esc_url( $url ) );
      }
      return true;
    }
    return false;
  }
  </code></pre>