[wordpress插件] Aucor coreAucor核心

wordpress 插件 文章 2020-02-23 02:30 550 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

The plugin contains the features and settings generally deemed to be the most commonly used in all projects.

该插件包含通常被认为是所有项目中最常用的功能和设置。

It is meant to be used together with aucor-starter but functions on it\'s own as well

它可以与 aucor-starter 一起使用,但也可以单独使用

.

Use the site specific plugin to configure the specs of this plugin.

使用特定于站点的插件来配置此插件的规格。

Contents

内容

Abstract Classes

抽象类

Directory: root

目录:根

The models the features are built on

构建功能的模型

Features and subfeatures

功能和子功能

Directory: /features/

目录: / features /

Features (containing subfeatures) ranging from security settings to speed optimizations and dashboard cleanup.

从安全设置到速度优化和仪表板清理的功能(包含子功能)。

admin:

管理员:

    • gallery
    • 图库

    • image-links
    • 图像链接

    • login
    • 登录

    • admin menu cleanup
    • 管理员菜单清理

    • notifications
    • 通知

    • profile cleanup
    • 个人资料清理

    • remove customizer
    • 删除定制器

    classic-editor:

    经典编辑器:

      • tinymce
      • tinymce

      dashboard:

      仪表板:

        • cleanup
        • 清理

        • recent widget
        • 最近的小部件

        • remove panels
        • 删除面板

        front-end:

        前端:

          • excerpt
          • 摘录

          • html fixes
          • html修复

          localization:

          本地化:

            • polyfill
            • polyfill

            • string translations
            • 字符串翻译

            plugins:

            插件:

              • acf
              • acf

              • gravityforms
              • gravityforms

              • redirection
              • 重定向

              • seo
              • seo

              • yoast
              • 酵母

              security:

              安全性:

                • disable admin email check
                • 禁用管理员电子邮件检查

                • disable file edit
                • 禁用文件编辑

                • disable unfiltered html
                • 禁用未过滤的html

                • head cleanup
                • 头部清理

                • hide users
                • 隐藏用户

                • remove comment moderation
                • 删除评论审核

                • remove commenting
                • 删除评论

                speed:

                速度:

                  • limit revisions
                  • 限制修订

                  • move jquery
                  • 移动jquery

                  • remove emojis
                  • 删除表情符号

                  • remove metabox
                  • 删除元框

                  debug:

                  调试:

                    • style guide
                    • 样式指南

                    • wireframe
                    • 线框

                    Helper functions

                    辅助功能

                    Directory: root

                    目录:根

                    Contains functions, like enhanced (internal) debugging, for all features/subfeatures to use

                    包含所有要使用的功能/子功能的功能,例如增强的(内部)调试

                    Configuration (optional)

                    配置(可选)

                    \”Active\” subfeatures

                    \“活动”子功能

                      • The style guide subfeature overrides the WP function the_content() with default markup for testing the most common tag styles, when the GET parameter \'?ac-debug=

                        样式指南子功能使用默认标记覆盖WP函数 the_content(),当GET参数\'?ac-debug =

                        styleguide\' is found in the url.

                        在网址中找到styleguide \”。

                        You can however replace this markup with a filter:

                        但是,您可以使用过滤器替换此标记:

                        add_filter(\’aucor_core_custom_markup\’, function($content) {
                          

                        add_filter(\'aucor_core_custom_markup \',function($ content){
                          

                        $content = \’custom markup\’;
                          

                        $ content = \'自定义标记\';
                          

                        return $content;

                        返回$ content;

                        });

                        });

                      • The wireframe subfeature adds outlines to all elements on page to help with visual debugging, when the GET parameter \’?ac-debug=wireframe\’ is found in the url.

                        当在网址中找到GET参数“?ac-debug = wireframe \”时, wireframe 子功能会在页面上的所有元素中添加轮廓,以帮助进行视觉调试。

                        It also appends \’?ac-debug=wireframe\’ to the href value in all anchor tags on the page to keep the feature enabled during navigation.

                        它还会将\'?ac-debug = wireframe \'附加到页面上所有锚标记的href值中,以在导航期间保持启用该功能。

                      Disable feature/subfeature

                      禁用功能/子功能

                      By default all the features/subfeatures are on, but you can disable the ones you don\’t want with filters.

                      默认情况下,所有功能/子功能都已启用,但是您可以禁用那些不希望使用过滤器的功能/子功能。

                      This need to be done in it\’s own plugin however.

                      不过,这需要在其自己的插件中完成。

                      This is because the hooks that the features latch onto are executed earlier than the theme setup, so filters in e.g.

                      这是因为功能锁存到的钩子是在主题设置之前执行的,因此过滤器例如

                      functions.php won\’t have any effect.

                      functions.php不会起作用。

                      Here is a minimal code snippet you can use to disable features:

                      这是您可以用来禁用功能的最小代码段:

                        <?php

                      /** 

                      / ** 

                      * Plugin Name: YOUR PLUGIN NAME 

                      *插件名称:您的插件名称 

                      */

                      * /

                      // disable a feature in Aucor Core

                      //禁用Aucor Core中的功能

                      add_filter(\'feature or subfeature key\', \'__return_false\');

                      add_filter(\'功能或子功能键\',\'__ return_false \');

                      Put this snippet in a file called plugin.php, in a directory named [YOUR PLUGIN NAME], and place the directory under the /plugins/ directory with your other plugins.

                      将此代码段放入名为[您的插件名称]的目录中的plugin.php文件中,并将该目录与其他插件一起放在/ plugins /目录下。

                      Note that if you disable a feature, all underlying subfeatures will be disabled as well.

                      请注意,如果您禁用某项功能,则所有基础子功能也将全部被禁用。

安装步骤

Download and activate.

下载并激活。

That\’s it.

就是这样。

下载地址
https://downloads.wordpress.org/plugin/aucor-core.zip
-EOF-

AI助手支持GPT4.0