Shark Deng

Interactive Designer @Shanju Design in Shanghai

touched caffe / mxnet / python / wordpress / bootstrap / Arduino / Raspberry Pi / webgl / three.js / PIXI / 3dMax

Email

Github

WordPress实用函数 – is_user_logged_in

2019-11-18 22:18:53

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

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

 



——By SharkDeng
如果你喜欢我的文章,欢迎红包赞赏

Leave a Reply

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