设置wordpress的多用户界面
Neyond at April 22nd. 2009, 8:40pm in Web development
有时会碰到这样的个性需求,为不同的用户组分配不同的权限和操作界面,基于Wordpress这个CMS很容易实现这个功能。这样对代码的执效率多少有些影响,具体没有实测。相关代码如下:
1: <?php if (is_user_logged_in()){ ... } ?> //判断用户是否已经登陆
2: //判断如果user_ID为2的用户将呈现的内容
3: <?php if ($user_ID == '2') { ?>
4: .......
5: <?php } ?>
以上代码仅部份,如果想了解更多参考下面的链接。
扩展阅读
Tagged with: php, wordpress
This entry was posted on April 22nd. 2009, 8:40pm and is filed under Web development. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Leave a Reply
No Comments