March 16, 2018

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

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

 



Contributed by Shark

Leave a Reply

Your email address will not be published. Required fields are marked *