<?php
if ( is_user_logged_in() ) {
global $rcl_user_URL;
echo '<a href="'. $rcl_user_URL . '" role="menuitem"><i class="fa fa-user"></i><span>if ( is_user_logged_in() ) {
echo wp_get_current_user()->display_name;
</span></a><br />';
echo '<a href="' . wp_logout_url( home_url() ) . '" role="menuitem">Выход</a>';
} else {
echo '<a href="https://blind-programming.com.ua/avtorization?action-rcl=login" class="recall-button rcl-login" role="menuitem">Вход</a><br />';
echo '<a href="https://blind-programming.com.ua/avtorization?action-rcl=register" class="recall-button rcl-register" role="menuitem">Регистрация</a>';
}
?>