Home > AI > Uncategorized

WordPress实用函数 – is_user_logged_in

针对登陆用户和游客有不同内容,可用这:

if ( is_user_logged_in()):
    echo "for member";
else:
    echo "for guests";
endif;

 

Related posts:

Leave a Reply