[wordpress插件] Admin Expert Mode管理员专家模式

wordpress 插件 文章 2020-02-03 08:00 687 0 全屏看文

AI助手支持GPT4.0

评分

0

0

描述

WordPress has long provided inline documentation throughout the administrative interface that provide explanations for various features and input fields.

WordPress长期以来在整个管理界面中都提供内联文档,其中提供了有关各种功能和输入字段的说明。

This includes an explanations of excerpts, trackbacks, custom fields, page parents, etc. These are great for newcomers to WordPress, but for those with sufficient familiarity these bits of text are no longer necessary and merely provide visual noise.

其中包括节录,引用,自定义字段,页面父级等的解释。这些对于WordPress的新手来说非常有用,但是对于那些熟悉的人,这些文本位不再是必需的,仅提供视觉噪音。

This plugin gets rid of those descriptive texts.

该插件摆脱了那些描述性文字。

The plugin’s behavior is made available as a per-user profile option.

该插件的行为可作为按用户个人资料选项使用。

Each user who wishes to enable expert mode for themselves must do so individually by going into their profile, checking the field ‘Expert mode’, and then pressing the ‘Update Profile’ button.

每个希望自己启用专家模式的用户必须分别进入自己的个人资料,选中“专家模式”字段,然后按“更新个人资料”按钮。

Specifically, this plugin removes:

具体来说,此插件会删除:

    • Categories

      类别

        • Description of “Category Name”
        • “类别名称”的描述

        • Description of “Category Slug”
        • “子弹”的描述

        • Description of “Category Parent”
        • “类别父母”的描述

        • Description of “Description”
        • “描述”的描述

      • Edit Post

        编辑帖子

          • Description of “Custom Fields”
          • “自定义字段”的描述

          • Description of “Excerpts”
          • “摘录”的描述

          • Description of “Trackbacks”
          • “引用通告”的描述

        • Edit Page

          编辑页面

            • Description of comment status
            • 评论状态描述

            • Description of “Custom Fields”
            • “自定义字段”的描述

            • Verbose descriptions of “Attributes” (parent, template, and order)
            • “属性”(父项,模板和顺序)的详细说明

          • Edit Link

            编辑链接

              • Description of “Name”
              • “名称”的描述

              • Description of “Web Address”
              • “网址”的描述

              • Description of “Description”
              • “描述”的描述

              • Description of “Target”
              • “目标”的描述

              • Description of “Link Relationships (XFN)”
              • “链接关系(XFN)”的描述

            • Tags

              标签

                • Description of “Tag name”
                • “标签名称”的描述

                • Description of “Tag slug”
                • “标签弹头”的描述

              • Widgets

                小部件

                  • Text indicating that widgets are added from the listing of widgets on the left.
                  • 指示左侧窗口小部件列表中添加了窗口小部件的文本。

                • Install Themes

                  安装主题

                    • Help text for search field
                    • 搜索字段的帮助文字

                    • Help text for “Feature Filter”
                    • “功能过滤器”的帮助文字

                  • Themes – Custom Header

                    主题–自定义标题

                      • Help text simply stating you can upload files from you computer
                      • 帮助文本仅说明您可以从计算机上载文件

                    • Manage Plugins

                      管理插件

                        • Description of what plugins are and that they are activated/deactivated on that page
                        • 在该页面上说明什么是插件以及它们已被激活/停用

                        • Text indicating that broken plugins can be renamed to remove them from being active
                        • 表示可以重命名损坏的插件以将其从活动状态中删除的文本

                        • Description of the “Recently Active Plugins” section
                        • “最近活动的插件”部分的说明

                      • Add New Plugins

                        添加新插件

                          • Help text for search field
                          • 搜索字段的帮助文字

                          • Help text for “Popular Tags”
                          • “热门标签”的帮助文字

                        • Users – Your Profile

                          用户-您的个人资料

                            • Help text for “Biographical Info”
                            • “传记信息”的帮助文本

                            • Help text for “Sessions”
                            • “会话”的帮助文本

                          • Tools

                            工具

                              • Description paragraphs for “Press This”
                              • “按此”的描述段落

                            • Tools – Import

                              工具-导入

                                • Description paragraph for “Import”
                                • “导入”的说明段落

                              • Tools – Export

                                工具-导出

                                  • Description paragraphs for “Export”
                                  • “导出”的说明段落

                                • Settings – General

                                  设置-常规

                                    • Extra help text after input fields for “Tagline”, “Site Address (URL)”, “Email Address”, “Timezone”
                                    • 在“标语”,“站点地址(URL)”,“电子邮件地址”,“时区”的输入字段之后附加帮助文本

                                  • Settings – Permalinks

                                    设置-永久链接

                                      • Help text about “Common Settings”
                                      • 有关“通用设置”的帮助文字

                                      • Help text about “Optional”
                                      • 有关“可选”的帮助文字

                                    • Settings – Privacy

                                      设置-隐私

                                        • Paragraphs of text describing the Privacy Policy page
                                        • 描述“隐私政策”页面的文字段落

                                      NOTE: This plugin does NOT remove input field labels or section headers, nor anything containing actual data.

                                      注意:此插件不会删除输入字段标签或节标题,也不会删除任何包含实际数据的东西。

                                      In a few cases, descriptive text is left intact when it is of enough importance to warrant retention, or the markup structure does not facilitate easy removal.

                                      在少数情况下,当描述性文本具有足够的重要性以保证保留时,或者标记结构不利于轻松删除时,该描述性文本将保留不变。

                                      Links: Plugin Homepage |

                                      链接:插件主页 |

                                      Plugin Directory Page |

                                      插件目录页面 |

                                      GitHub |

                                      GitHub |

                                      Author Homepage

                                      作者主页

                                      Hooks

                                      挂钩

                                      The plugin is further customizable via two filters.

                                      可以通过两个过滤器进一步自定义插件。

                                      Code using these filters should ideally be put into a mu-plugin or site-specific plugin (which is beyond the scope of this readme to explain).

                                      理想情况下,应该将使用这些过滤器的代码放入mu插件或特定于站点的插件中(这不在本自述文件的解释范围内)。

                                      Less ideally, you could put them in your active theme’s functions.php file.

                                      不太理想的是,您可以将它们放在活动主题的functions.php文件中。

                                      c2c_admin_expert_mode (filter)

                                      c2c_admin_expert_mode(过滤器)

                                      The ‘c2c_admin_expert_mode’ filter allows you to dynamically determine whether the admin expert mode should be active.

                                      通过“ c2c_admin_expert_mode”过滤器,您可以动态确定管理专家模式是否应处于活动状态。

                                      Arguments:

                                      参数:

                                        • $is_active (bool): Boolean indicating if admin expert mode is currently active
                                        • $ is_active(布尔):布尔值,指示管理员专家模式当前是否处于活动状态

                                        • $user_login (string): Login of the current user
                                        • $ user_login(字符串):当前用户的登录名

                                        Example:

                                        示例:

                                          <?php

                                        // Never let user 'bob' activate admin expert mode

                                        //切勿让用户“ bob”激活管理员专家模式

                                        function aem_never_let_bob_activate( $is_active, $user_login ) {    

                                        函数aem_never_let_bob_activate($ is_active,$ user_login){    

                                        if ( 'bob' == $user_login )        

                                        如果('bob'== $ user_login)        

                                        return false;    

                                        返回false;    

                                        return $is_active;

                                        返回$ is_active;

                                        // Otherwise, preserve activation status for user

                                        //否则,保留用户的激活状态

                                        }

                                        }

                                        add_filter( 'c2c_admin_expert_mode', 'aem_never_let_bob_activate', 10, 2 );?>

                                        add_filter('c2c_admin_expert_mode','aem_never_let_bob_activate',10,2);?>

                                        c2c_admin_expert_mode_default (filter)

                                        c2c_admin_expert_mode_default(过滤器)

                                        The ‘c2c_admin_expert_mode_default’ filter allows you to specify whether admin expert mode should be active for users by default or not.

                                        通过“ c2c_admin_expert_mode_default”过滤器,您可以指定默认情况下是否应为用户启用管理专家模式。

                                        This filter only applies to users who visit the admin for the first time after the plugin is activated.

                                        此过滤器仅适用于激活插件后首次访问管理员的用户。

                                        Once a user visits the admin, their setting gets set to the default state and will no longer be affected by this filter.

                                        用户访问管理员后,其设置将设置为默认状态,并且不再受此过滤器的影响。

                                        If you wish to affect the setting for existing users, use the ‘c2c_admin_expert_mode’ filter instead.

                                        如果您希望影响现有用户的设置,请改用“ c2c_admin_expert_mode”过滤器。

                                        Arguments:

                                        参数:

                                          • $is_active (bool): Boolean indicating if admin expert mode is active by default (default is false)
                                          • $ is_active(布尔):布尔值,指示默认情况下管理专家模式是否处于活动状态(默认为false)

                                          Example:

                                          示例:

                                            <?php //默认情况下为所有用户启用管理专家模式

                                          add_filter( 'c2c_admin_expert_mode_default', '__return_true' );

                                          add_filter('c2c_admin_expert_mode_default','__return_true');

                                          ?>

                                          ?>

安装步骤

    1. Install via the built-in WordPress plugin installer.

    2. 通过内置的WordPress插件安装程序进行安装。

      Or download and unzip admin-expert-mode.zip inside the plugins directory for your site (typically wp-content/plugins/)

    3. 或在您网站的插件目录中下载 admin-expert-mode.zip 并解压缩(通常为 wp-content / plugins /

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

    6. Each user who wishes to enable expert mode for themselves must do so individually by going into their profile, checking the checkbox ‘Expert mode’, and then pressing the ‘Update Profile’ button.
    7. 每个希望自己启用专家模式的用户必须分别进入自己的个人资料,选中“专家模式”复选框,然后按“更新个人资料”按钮来单独启用。

下载地址

https://downloads.wordpress.org/plugin/admin-expert-mode.2.6.zip

https://downloads.wordpress.org/plugin/admin-expert-mode.2.6.zip

-EOF-

AI助手支持GPT4.0