[wordpress插件] DC RoleDC角色

wordpress 插件 文章 2020-04-13 13:20 482 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插件] Cache External Scripts缓存外部脚本
[wordpress插件] Deny All Firewall拒绝所有防火墙
[wordpress插件] Comments Emails评论电子邮件
[wordpress插件] Advance Canonical URL高级规范网址
[wordpress插件] DM Confirm EmailDM确认电子邮件
随便看看
企业微信通讯录账号被管理员误/恶意删除,怎么办? 9568
问题? 9048
如何快速搭建抽奖助手小程序(无需代码知识) 6177
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 7472
小程序搜一搜全称搜索不显示 麻烦解决一下!谢谢 6793
我的小程序广告收款主体是个体工商户,每个月邮寄两次发票很是麻烦,我年底的时候打包邮寄一次可以么? 6128
如何解决渲染层网络错误Failed to load media? 17394
小程序找号找回 释放昵称? 3253
我的小程序广告主收入5301,实际进账4406,是怎么回事呀? 3108
删除部分微信用户个人数据的通知,怎么删除? 6381