[wordpress插件] Demo Lock演示锁

wordpress 插件 文章 2020-04-15 07:10 443 0 全屏看文

AI助手支持GPT4.0

评分
40
描述

Demo Lock is a fully configurable plugin for WordPress developers that aims to provide a secure environment in the wp-admin interface enabling users to test admin interface plugins in a live demo with extremely limited access to all other WordPress settings.

Demo Lock是为WordPress开发人员提供的完全可配置的插件,旨在在wp-admin界面中提供一个安全的环境,使用户能够在实时演示中测试管理界面插件,而对所有其他WordPress设置的访问权限极为有限。

This is a heavily modified version of a plugin originally written by Thomas Griffin (http://thomasgriffinmedia.com/blog/2012/08/create-live-demo-wordpress-plugin/).

这是最初由Thomas Griffin(http://thomasgriffinmedia.com/blog/2012/08/create-live-demo-wordpress-plugin/)编写的插件的经过严格修改的版本。

It has been modified to

已修改为

be completely plugin-independent and fully customizable through the config.php file, and updated to WordPress 3.5 standards.

完全独立于插件,并且可以通过config.php文件进行完全自定义,并更新为WordPress 3.5标准。

安装步骤

    • Unzip archive into your plugins directory.
    • 将存档解压缩到您的插件目录中。

    • Open up config.php in your favourite text editor.
    • 在您喜欢的文本编辑器中打开config.php。

    • Edit the variable values to reflect your demo plugin settings (by default, all default wp-admin pages and widgets are blocked).
    • 编辑变量值以反映您的演示插件设置(默认情况下,所有默认的wp-admin页面和窗口小部件均被阻止)。

    • Save your new config.php file.
    • 保存新的config.php文件。

    • Create a Demo User account in your live WordPress install with the credentials you set in the config.php file under [‘username’] and [‘password’].
    • 使用您在config.php文件中[[用户名]]和[[密码]]下设置的凭据在实时WordPress安装中创建一个演示用户帐户。

    • Set the user role for your new demo account to reflect the value set in the [‘role’] variable (default is subscriber).
    • 设置新演示帐户的用户角色,以反映在['role']变量中设置的值(默认为订户)。

    • Navigate to your plugins page in your admin interface, and enable Demo-Lock.
    • 导航至管理界面中的“插件”页面,然后启用“演示锁定”。

下载地址
https://downloads.wordpress.org/plugin/demo-lock.zip
-EOF-

AI助手支持GPT4.0