Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
[デモ会員サイト構築]15. トップページにウィジェットを設定して、会員サイトである事を表示
<?php if(is_user_logged_in()){ ?>
<div class="user-name">こんにちは <?php global $current_user; echo $current_user->display_name ?> さん</div>
<?php } elseif (is_front_page()) {
} ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.