AI助手支持GPT4.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.
使用特定于站点的插件来配置此插件的规格。 p>
Directory: root
目录:根 p>
The models the features are built on
构建功能的模型 p>
Directory: /features/
/features/
目录: / features / code> p>Features (containing subfeatures) ranging from security settings to speed optimizations and dashboard cleanup.从安全设置到速度优化和仪表板清理的功能(包含子功能)。 p>admin:管理员: p>gallery图库 li>image-links图像链接 li>login登录 li>admin menu cleanup管理员菜单清理 li>notifications通知 li>profile cleanup个人资料清理 li>remove customizer删除定制器 li> ul>classic-editor:经典编辑器: p>tinymce tinymce li> ul>dashboard:仪表板: p>cleanup清理 li>recent widget最近的小部件 li>remove panels删除面板 li> ul>front-end:前端: p>excerpt摘录 li>html fixes html修复 li> ul>localization:本地化: p>polyfill polyfill li>string translations字符串翻译 li> ul>plugins:插件: p>acf acf li>gravityforms gravityforms li>redirection重定向 li>seo seo li>yoast酵母 li> ul>security:安全性: p>disable admin email check禁用管理员电子邮件检查 li>disable file edit禁用文件编辑 li>disable unfiltered html禁用未过滤的html li>head cleanup头部清理 li>hide users隐藏用户 li>remove comment moderation删除评论审核 li>remove commenting删除评论 li> ul>speed:速度: p>limit revisions限制修订 li>move jquery移动jquery li>remove emojis删除表情符号 li>remove metabox删除元框 li> ul>debug:调试: p>style guide样式指南 li>wireframe线框 li> ul>Helper functions辅助功能 h4>Directory: root目录:根 p>Contains functions, like enhanced (internal) debugging, for all features/subfeatures to use包含所有要使用的功能/子功能的功能,例如增强的(内部)调试 p>Configuration (optional)配置(可选) h3>\”Active\” subfeatures \“活动”子功能 h4>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= 样式指南 em>子功能使用默认标记覆盖WP函数 the_content() code>,当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; });}); p> li>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 em>子功能会在页面上的所有元素中添加轮廓,以帮助进行视觉调试。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值中,以在导航期间保持启用该功能。 p> li> ul>Disable feature/subfeature禁用功能/子功能 h4>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:这是您可以用来禁用功能的最小代码段: p> <?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 \'); code> pre>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 /目录下。 p>Note that if you disable a feature, all underlying subfeatures will be disabled as well.请注意,如果您禁用某项功能,则所有基础子功能也将全部被禁用。 p>
/ features / code> p>Features (containing subfeatures) ranging from security settings to speed optimizations and dashboard cleanup.从安全设置到速度优化和仪表板清理的功能(包含子功能)。 p>admin:管理员: p>gallery图库 li>image-links图像链接 li>login登录 li>admin menu cleanup管理员菜单清理 li>notifications通知 li>profile cleanup个人资料清理 li>remove customizer删除定制器 li> ul>classic-editor:经典编辑器: p>tinymce tinymce li> ul>dashboard:仪表板: p>cleanup清理 li>recent widget最近的小部件 li>remove panels删除面板 li> ul>front-end:前端: p>excerpt摘录 li>html fixes html修复 li> ul>localization:本地化: p>polyfill polyfill li>string translations字符串翻译 li> ul>plugins:插件: p>acf acf li>gravityforms gravityforms li>redirection重定向 li>seo seo li>yoast酵母 li> ul>security:安全性: p>disable admin email check禁用管理员电子邮件检查 li>disable file edit禁用文件编辑 li>disable unfiltered html禁用未过滤的html li>head cleanup头部清理 li>hide users隐藏用户 li>remove comment moderation删除评论审核 li>remove commenting删除评论 li> ul>speed:速度: p>limit revisions限制修订 li>move jquery移动jquery li>remove emojis删除表情符号 li>remove metabox删除元框 li> ul>debug:调试: p>style guide样式指南 li>wireframe线框 li> ul>Helper functions辅助功能 h4>Directory: root目录:根 p>Contains functions, like enhanced (internal) debugging, for all features/subfeatures to use包含所有要使用的功能/子功能的功能,例如增强的(内部)调试 p>Configuration (optional)配置(可选) h3>\”Active\” subfeatures \“活动”子功能 h4>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= 样式指南 em>子功能使用默认标记覆盖WP函数 the_content() code>,当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; });}); p> li>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 em>子功能会在页面上的所有元素中添加轮廓,以帮助进行视觉调试。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值中,以在导航期间保持启用该功能。 p> li> ul>Disable feature/subfeature禁用功能/子功能 h4>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:这是您可以用来禁用功能的最小代码段: p> <?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 \'); code> pre>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 /目录下。 p>Note that if you disable a feature, all underlying subfeatures will be disabled as well.请注意,如果您禁用某项功能,则所有基础子功能也将全部被禁用。 p>
Features (containing subfeatures) ranging from security settings to speed optimizations and dashboard cleanup.
从安全设置到速度优化和仪表板清理的功能(包含子功能)。 p>
admin:
管理员: p>
ul>
classic-editor:
经典编辑器: p>
dashboard:
仪表板: p>
front-end:
前端: p>
localization:
本地化: p>
plugins:
插件: p>
security:
安全性: p>
speed:
速度: p>
debug:
调试: p>
Contains functions, like enhanced (internal) debugging, for all features/subfeatures to use
包含所有要使用的功能/子功能的功能,例如增强的(内部)调试 p>
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=
the_content()
样式指南 em>子功能使用默认标记覆盖WP函数 the_content() code>,当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; });}); p>
the_content() code>,当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; });}); p>
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;
});
}); p>
li>
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 em>子功能会在页面上的所有元素中添加轮廓,以帮助进行视觉调试。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值中,以在导航期间保持启用该功能。 p>
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值中,以在导航期间保持启用该功能。 p>
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:
这是您可以用来禁用功能的最小代码段: p>
<?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 \'); code> pre>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 /目录下。 p>Note that if you disable a feature, all underlying subfeatures will be disabled as well.请注意,如果您禁用某项功能,则所有基础子功能也将全部被禁用。 p>
<?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 \');
/**
/ **
* 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 \');
code> pre>
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 /目录下。 p>
Note that if you disable a feature, all underlying subfeatures will be disabled as well.
请注意,如果您禁用某项功能,则所有基础子功能也将全部被禁用。 p>
Download and activate.
下载并激活。
That\’s it.
就是这样。 p>
原文出处:http://www.sanshu.cn/a/3042.html
群主管理都是支付大佬