例では、get_post_status関数を利用し、現在の投稿や固定ページが「下書き」かどうかを判断しています。 <?php if ( get_post_status () == 'draft' ) ...
確定! 回上一頁