title: Adding `post_author` in php
body: <p>So, I have following markup to show a shortcode:</p>
  
  <pre><code>&lt;div class="my_edit_button"&gt;
      &lt;?php echo do_shortcode('[something]'); ?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Then I am trying to make it so that the shortcode is only shown to post author by using the following:</p>
  
  <pre><code>return ($post-&gt;post_author == $current_user-&gt;ID);
  </code></pre>
  
  <p>But I am not sure how to incorporate both into one.</p>
  
  <p>Could someone help me out?</p>