title: Show php code to specific crawler
body: <p>I have the following construction:</p>
  
  <pre><code>&lt;?php if (is_page_template( 'template.php' )  ) : ?&gt;
   &lt;meta name="fragment" content="!"&gt;
  &lt;?php endif; ?&gt;
  </code></pre>
  
  <p>in header section of my WP site. I need to show <code>&lt;meta name="fragment" content="!"&gt;</code>
  string inside the php if statement only to a specific search engine bot crawler - <strong>yandex</strong> and hide for others. Hot to do that easilly? My idea is to wrap that meta tag or the whole php statement into some other if statement if that is possible or please give me another solution and thank you.</p>