[wordpress插件] DC RoleDC角色

wordpress 插件 文章 2020-04-13 13:20 483 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

DC Role is a plugin which can show content to users (not) belonging to a certain role they have.

DC Role是一个插件,可以向属于某个角色的用户(而非用户)显示内容。

It is meant as a lightweight version for some kind of member/subscription system.

它是某种成员/订阅系统的轻量级版本。

The shortcodes can also be selected from a button in the editor, making it (hopefully) friendly to non-techies.

也可以从编辑器中的按钮中选择简码,以使其(希望)对非技术人员友好。

DC Role consists of 5 shortcodes:

DC角色包含5个短代码:

    • [dc_role role=”administrator”]content[/dc_role] shows the specified content only if the users is an administrator

      [dc_role role =” administrator”] content [/ dc_role]仅在用户为管理员时显示指定的内容

    • [dc_not_role role=”administrator]content[/dc_not_role] shows the specified content only if the user is not an administrator

      [dc_not_role role =“ administrator] content [/ dc_not_role]仅在用户不是管理员时显示指定的内容

    • [dc_roles roles=”administrator,subscriber”]content[/dc_roles] shows the specified content if the user has any of the provided roles (in this case administrator or subscriber)

      [dc_roles角色=“管理员,订户”] content [/ dc_roles]显示指定内容,如果用户具有任何提供的角色(在这种情况下为管理员或订户)

    • [dc_not_roles roles=”administrator,subscriber]content[/dc_not_roles] shows the specified content if the user does not have any of the provided roles

      如果用户没有任何提供的角色,[dc_not_roles角色=”管理员,订阅者] content [/ dc_not_roles]显示指定的内容

    • [dc_all_roles] shows a list of all roles the wordpress installation has

      [dc_all_roles]显示了wordpress安装具有的所有角色的列表

安装步骤

This section describes how to install the plugin and get it working.

本节介绍如何安装插件并使其正常工作。

    1. Upload the dc-role folder to the /wp-content/plugins/ directory
    2. 将dc-role文件夹上载到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

    5. When editing a page that you want to show content based on the users role, click on the red button in the editor and select your case.

    6. 在编辑要根据用户角色显示内容的页面时,请单击编辑器中的红色按钮,然后选择案例。

      Enter the role(s) that the system should take into account and you’re all set!

    7. 输入系统应考虑的角色,您便已准备就绪!

下载地址
https://downloads.wordpress.org/plugin/dc-role.zip
-EOF-

AI助手支持GPT4.0


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
[wordpress插件] Auto Tag Suggest自动标记建议
[wordpress插件] Disable Split the Query禁用拆分查询
[wordpress插件] Carla WordPress Security PluginCarla WordPress安全插件
[wordpress插件] CustMain客户主
[wordpress插件] Import User Meta Data from CSV从CSV导入用户元数据
随便看看
教育科技公司申请微信支付被拒绝? 4798
微信公众号免300认证教程 5892
小程序已经上线,作为管理员无法在小程序数据助手查看数据? 5299
小程序广告组件通过审核,但是小程序内没有显示广告? 5067
企业微信通讯录账号被管理员误/恶意删除,怎么办? 9568
问题? 9048
如何快速搭建抽奖助手小程序(无需代码知识) 6177
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 7472
小程序搜一搜全称搜索不显示 麻烦解决一下!谢谢 6793
我的小程序广告收款主体是个体工商户,每个月邮寄两次发票很是麻烦,我年底的时候打包邮寄一次可以么? 6128