doudang1890 2016-06-17 17:32
浏览 8
已采纳

允许店铺经理使用革命滑块


Which attribute shall I insert to this function in order to allow the shop manager to use the revolution slider plugin?
I tried this code but it doesn't work!

function add_theme_caps() {
    $role = get_role( 'shop_manager' );
    $role->add_cap( 'edit_rev_slider' ); 

}
add_action( 'admin_init', 'add_theme_caps');

Thank you in advance.

  • 写回答

1条回答 默认 最新

  • doulu8415 2016-06-17 19:09
    关注

    You can't use anymore this kind of tricks with Revolution slider, because it handle this himself.

    You need to go in the global settings of this plugin (a little button in top right when you are on main Revolution Slider backend page) and change the authorized user roles from Admin to Editor, Admin or Author, Editor, Admin.

    This way the Shop Manager user role will have access to Revolution Slider settings.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 请看一下,学校实验要求,我需要具体代码
  • ¥50 pc微信3.6.0.18不能登陆 有偿解决问题
  • ¥15 求TYPCE母转母转接头24PIN线路板图
  • ¥100 国外网络搭建,有偿交流
  • ¥15 高价求中通快递查询接口
  • ¥15 解决一个加好友限制问题 或者有好的方案
  • ¥15 急matlab编程仿真二阶震荡系统
  • ¥20 TEC-9的数据通路实验
  • ¥15 ue5 .3之前好好的现在只要是激活关卡就会崩溃
  • ¥50 MATLAB实现圆柱体容器内球形颗粒堆积