该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Sidebar Per User Role

描述

This Plugin lets you display a sidebar per user role automaticaly without any coding what so ever, and it works with any theme out of the box.

Any feedback or suggestions are welcome.

Also check out my other plugins
 

屏幕截图

  • User Role Sidebars
  • Plugin option panel
  • Plugin help panel

安装

  • Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation.
  • Then activate the Plugin from Plugins page.
  • Done!

常见问题

Usage: 

Either call the guest sidebar in your theme using :

 

<?php dynamic_sidebar( 'guest-sidebar' ); ?>

 

which will be replaced based on the user role.

 

Or use an existing sidebar you want replaced by adding this in your themes functions.php

 

add_action('after_theme_setup','replace_sidebar_');

function replace_sidebar_(){

    global $sidebars_per_role;
    $sidebars_per_role->sidebar_to_replace = 'ID-OF-YOUR-Sidebar';
}

评价

此插件暂无评价。

贡献者及开发者

“Sidebar Per User Role” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Sidebar Per User Role”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

0.3 Fixed naming issues
0.2 Fixed require_once error.
0.1 Initial relases.