0
所以,我下面的標記來顯示短代碼:添加`post_author`在PHP
<div class="my_edit_button">
<?php echo do_shortcode('[something]'); ?>
</div>
然後我試圖讓這個短碼只顯示使用下列到帖子的作者:
return ($post->post_author == $current_user->ID);
但我不知道如何將兩者合併爲一。
有人可以幫我嗎?