AI助手支持GPT4.0
Code Snippets is an easy, clean and simple way to run PHP code snippets on your site.
代码段是一种在您的站点上运行PHP代码段的简便,简洁的方法。
It removes the need to add custom snippets to your theme theme’s functions.php file.
functions.php
无需在主题主题的 functions.php code>文件中添加自定义片段。 p>A snippet is a small chunk of PHP code that you can use to extend the functionality of a WordPress-powered website;摘要是一小段PHP代码,可用于扩展WordPress驱动的网站的功能;essentially a mini-plugin with less load on your site.本质上是一个迷你插件,可减轻您网站的负担。Most snippet-hosting sites tell you to add snippet code to your active theme’s functions.php file, which can get rather long and messy after a while.大多数代码段托管网站会告诉您将代码段添加到活动主题的 functions.php code>文件中,该文件在一段时间后可能会变得很长且混乱。Code Snippets changes that by providing a GUI interface for adding snippets and actually running them on your site just as if they were in your theme’s functions.php file.代码片段通过提供一个GUI界面来添加和添加实际上在您的网站上运行它们 strong>,就像它们位于主题的 functions.php code>文件中一样。 p>Code Snippets provides graphical interface, similar to the Plugins menu, for managing snippets.代码段提供了类似于“插件”菜单的图形界面,用于管理代码段。Snippets can can be activated and deactivated, just like plugins.片段可以像插件一样被激活和停用。The snippet editor includes fields for a name, a visual editor-enabled description, tags to allow you to categorize snippets, and a full-featured code editor.片段编辑器包括名称字段,启用可视编辑器的描述,允许您对片段进行分类的标记以及功能全面的代码编辑器。Snippets can be exported for transfer to another side, either in JSON for later importing by the Code Snippets plugin, or in PHP for creating your own plugin or theme.可以以JSON形式导出代码段以传输到另一端,以供以后通过Code Snippets插件导入,也可以以PHP形式创建自己的插件或主题。 p>If you have any feedback, issues, or suggestions for improvements please leave a topic in the Support Forum,如果您有任何反馈,问题或改进建议,请在支持论坛中保留一个主题,or join the community on Facebook.或在Facebook上加入社区。 p>If you like this plugin, or it is useful to you in some way, please consider reviewing it on 如果您喜欢此插件,或者对您有所帮助,请考虑在 WordPress.org.WordPress.org 。 p>If you'd like to contribute to the plugin's code or translate it into another language, you can fork the如果您想为插件的代码做出贡献或将其翻译成另一种语言,则可以分叉plugin on GitHub.GitHub上的插件。 p>Translations翻译 h4>Code Snippets can be used in these different languages thanks to the following translators:借助以下翻译器,代码片段可用于这些不同的语言: p>Danish – Finn Sommer Jensen丹麦文– 芬恩·索默·詹森 li>French – momo-fr and 法语– momo-fr 和"nofollow">Shea Bunge“ nofollow”>乳木果树 li>Belarusian – Hrank.com白俄罗斯语– Hrank.com li>Brazilian Portuguese – Bruno Borges巴西葡萄牙语-布鲁诺·博尔赫斯(Bruno Borges) li>French (Canada) – Dominic Desbiens法国(加拿大)– 多米尼克·德斯比恩斯 li>Indonesian – Jordan Silaen from ChameleonJohn.com印度尼西亚语– ChameleonJohn.com的乔丹·西兰(Jordan Silaen) li>German – Mario Siegmann, 德语– 马里奥·西格曼,rel="nofollow">Joerg Knoerchen, and David Deckerrel =“ nofollow”> Joerg Knoerchen 和 David Decker li>Dutch – Sander Spies荷兰语– 桑德尔间谍 li>Slovak – Ján Fajčák斯洛伐克语– JanFajčák li>Russian – Alexander Samsonov俄语– 亚历山大·桑索诺夫 li>Chinese – Jincheng Shan中文– 金城山 li>Croatian – Borisa Djuraskovic from Web Hosting Hub克罗地亚语– 来自Web Hosting Hub的Borisa Djuraskovic li>Japanese – mt8日语– mt8 li> ul>
functions.php code>文件中添加自定义片段。 p>A snippet is a small chunk of PHP code that you can use to extend the functionality of a WordPress-powered website;摘要是一小段PHP代码,可用于扩展WordPress驱动的网站的功能;essentially a mini-plugin with less load on your site.本质上是一个迷你插件,可减轻您网站的负担。Most snippet-hosting sites tell you to add snippet code to your active theme’s functions.php file, which can get rather long and messy after a while.大多数代码段托管网站会告诉您将代码段添加到活动主题的 functions.php code>文件中,该文件在一段时间后可能会变得很长且混乱。Code Snippets changes that by providing a GUI interface for adding snippets and actually running them on your site just as if they were in your theme’s functions.php file.代码片段通过提供一个GUI界面来添加和添加实际上在您的网站上运行它们 strong>,就像它们位于主题的 functions.php code>文件中一样。 p>Code Snippets provides graphical interface, similar to the Plugins menu, for managing snippets.代码段提供了类似于“插件”菜单的图形界面,用于管理代码段。Snippets can can be activated and deactivated, just like plugins.片段可以像插件一样被激活和停用。The snippet editor includes fields for a name, a visual editor-enabled description, tags to allow you to categorize snippets, and a full-featured code editor.片段编辑器包括名称字段,启用可视编辑器的描述,允许您对片段进行分类的标记以及功能全面的代码编辑器。Snippets can be exported for transfer to another side, either in JSON for later importing by the Code Snippets plugin, or in PHP for creating your own plugin or theme.可以以JSON形式导出代码段以传输到另一端,以供以后通过Code Snippets插件导入,也可以以PHP形式创建自己的插件或主题。 p>If you have any feedback, issues, or suggestions for improvements please leave a topic in the Support Forum,如果您有任何反馈,问题或改进建议,请在支持论坛中保留一个主题,or join the community on Facebook.或在Facebook上加入社区。 p>If you like this plugin, or it is useful to you in some way, please consider reviewing it on 如果您喜欢此插件,或者对您有所帮助,请考虑在 WordPress.org.WordPress.org 。 p>If you'd like to contribute to the plugin's code or translate it into another language, you can fork the如果您想为插件的代码做出贡献或将其翻译成另一种语言,则可以分叉plugin on GitHub.GitHub上的插件。 p>Translations翻译 h4>Code Snippets can be used in these different languages thanks to the following translators:借助以下翻译器,代码片段可用于这些不同的语言: p>Danish – Finn Sommer Jensen丹麦文– 芬恩·索默·詹森 li>French – momo-fr and 法语– momo-fr 和"nofollow">Shea Bunge“ nofollow”>乳木果树 li>Belarusian – Hrank.com白俄罗斯语– Hrank.com li>Brazilian Portuguese – Bruno Borges巴西葡萄牙语-布鲁诺·博尔赫斯(Bruno Borges) li>French (Canada) – Dominic Desbiens法国(加拿大)– 多米尼克·德斯比恩斯 li>Indonesian – Jordan Silaen from ChameleonJohn.com印度尼西亚语– ChameleonJohn.com的乔丹·西兰(Jordan Silaen) li>German – Mario Siegmann, 德语– 马里奥·西格曼,rel="nofollow">Joerg Knoerchen, and David Deckerrel =“ nofollow”> Joerg Knoerchen 和 David Decker li>Dutch – Sander Spies荷兰语– 桑德尔间谍 li>Slovak – Ján Fajčák斯洛伐克语– JanFajčák li>Russian – Alexander Samsonov俄语– 亚历山大·桑索诺夫 li>Chinese – Jincheng Shan中文– 金城山 li>Croatian – Borisa Djuraskovic from Web Hosting Hub克罗地亚语– 来自Web Hosting Hub的Borisa Djuraskovic li>Japanese – mt8日语– mt8 li> ul>
A snippet is a small chunk of PHP code that you can use to extend the functionality of a WordPress-powered website;
摘要是一小段PHP代码,可用于扩展WordPress驱动的网站的功能;
essentially a mini-plugin with less load on your site.
本质上是一个迷你插件,可减轻您网站的负担。
Most snippet-hosting sites tell you to add snippet code to your active theme’s functions.php file, which can get rather long and messy after a while.
大多数代码段托管网站会告诉您将代码段添加到活动主题的 functions.php code>文件中,该文件在一段时间后可能会变得很长且混乱。Code Snippets changes that by providing a GUI interface for adding snippets and actually running them on your site just as if they were in your theme’s functions.php file.代码片段通过提供一个GUI界面来添加和添加实际上在您的网站上运行它们 strong>,就像它们位于主题的 functions.php code>文件中一样。 p>Code Snippets provides graphical interface, similar to the Plugins menu, for managing snippets.代码段提供了类似于“插件”菜单的图形界面,用于管理代码段。Snippets can can be activated and deactivated, just like plugins.片段可以像插件一样被激活和停用。The snippet editor includes fields for a name, a visual editor-enabled description, tags to allow you to categorize snippets, and a full-featured code editor.片段编辑器包括名称字段,启用可视编辑器的描述,允许您对片段进行分类的标记以及功能全面的代码编辑器。Snippets can be exported for transfer to another side, either in JSON for later importing by the Code Snippets plugin, or in PHP for creating your own plugin or theme.可以以JSON形式导出代码段以传输到另一端,以供以后通过Code Snippets插件导入,也可以以PHP形式创建自己的插件或主题。 p>If you have any feedback, issues, or suggestions for improvements please leave a topic in the Support Forum,如果您有任何反馈,问题或改进建议,请在支持论坛中保留一个主题,or join the community on Facebook.或在Facebook上加入社区。 p>If you like this plugin, or it is useful to you in some way, please consider reviewing it on 如果您喜欢此插件,或者对您有所帮助,请考虑在 WordPress.org.WordPress.org 。 p>If you'd like to contribute to the plugin's code or translate it into another language, you can fork the如果您想为插件的代码做出贡献或将其翻译成另一种语言,则可以分叉plugin on GitHub.GitHub上的插件。 p>Translations翻译 h4>Code Snippets can be used in these different languages thanks to the following translators:借助以下翻译器,代码片段可用于这些不同的语言: p>Danish – Finn Sommer Jensen丹麦文– 芬恩·索默·詹森 li>French – momo-fr and 法语– momo-fr 和"nofollow">Shea Bunge“ nofollow”>乳木果树 li>Belarusian – Hrank.com白俄罗斯语– Hrank.com li>Brazilian Portuguese – Bruno Borges巴西葡萄牙语-布鲁诺·博尔赫斯(Bruno Borges) li>French (Canada) – Dominic Desbiens法国(加拿大)– 多米尼克·德斯比恩斯 li>Indonesian – Jordan Silaen from ChameleonJohn.com印度尼西亚语– ChameleonJohn.com的乔丹·西兰(Jordan Silaen) li>German – Mario Siegmann, 德语– 马里奥·西格曼,rel="nofollow">Joerg Knoerchen, and David Deckerrel =“ nofollow”> Joerg Knoerchen 和 David Decker li>Dutch – Sander Spies荷兰语– 桑德尔间谍 li>Slovak – Ján Fajčák斯洛伐克语– JanFajčák li>Russian – Alexander Samsonov俄语– 亚历山大·桑索诺夫 li>Chinese – Jincheng Shan中文– 金城山 li>Croatian – Borisa Djuraskovic from Web Hosting Hub克罗地亚语– 来自Web Hosting Hub的Borisa Djuraskovic li>Japanese – mt8日语– mt8 li> ul>
functions.php code>文件中,该文件在一段时间后可能会变得很长且混乱。Code Snippets changes that by providing a GUI interface for adding snippets and actually running them on your site just as if they were in your theme’s functions.php file.代码片段通过提供一个GUI界面来添加和添加实际上在您的网站上运行它们 strong>,就像它们位于主题的 functions.php code>文件中一样。 p>Code Snippets provides graphical interface, similar to the Plugins menu, for managing snippets.代码段提供了类似于“插件”菜单的图形界面,用于管理代码段。Snippets can can be activated and deactivated, just like plugins.片段可以像插件一样被激活和停用。The snippet editor includes fields for a name, a visual editor-enabled description, tags to allow you to categorize snippets, and a full-featured code editor.片段编辑器包括名称字段,启用可视编辑器的描述,允许您对片段进行分类的标记以及功能全面的代码编辑器。Snippets can be exported for transfer to another side, either in JSON for later importing by the Code Snippets plugin, or in PHP for creating your own plugin or theme.可以以JSON形式导出代码段以传输到另一端,以供以后通过Code Snippets插件导入,也可以以PHP形式创建自己的插件或主题。 p>If you have any feedback, issues, or suggestions for improvements please leave a topic in the Support Forum,如果您有任何反馈,问题或改进建议,请在支持论坛中保留一个主题,or join the community on Facebook.或在Facebook上加入社区。 p>If you like this plugin, or it is useful to you in some way, please consider reviewing it on 如果您喜欢此插件,或者对您有所帮助,请考虑在 WordPress.org.WordPress.org 。 p>If you'd like to contribute to the plugin's code or translate it into another language, you can fork the如果您想为插件的代码做出贡献或将其翻译成另一种语言,则可以分叉plugin on GitHub.GitHub上的插件。 p>Translations翻译 h4>Code Snippets can be used in these different languages thanks to the following translators:借助以下翻译器,代码片段可用于这些不同的语言: p>Danish – Finn Sommer Jensen丹麦文– 芬恩·索默·詹森 li>French – momo-fr and 法语– momo-fr 和"nofollow">Shea Bunge“ nofollow”>乳木果树 li>Belarusian – Hrank.com白俄罗斯语– Hrank.com li>Brazilian Portuguese – Bruno Borges巴西葡萄牙语-布鲁诺·博尔赫斯(Bruno Borges) li>French (Canada) – Dominic Desbiens法国(加拿大)– 多米尼克·德斯比恩斯 li>Indonesian – Jordan Silaen from ChameleonJohn.com印度尼西亚语– ChameleonJohn.com的乔丹·西兰(Jordan Silaen) li>German – Mario Siegmann, 德语– 马里奥·西格曼,rel="nofollow">Joerg Knoerchen, and David Deckerrel =“ nofollow”> Joerg Knoerchen 和 David Decker li>Dutch – Sander Spies荷兰语– 桑德尔间谍 li>Slovak – Ján Fajčák斯洛伐克语– JanFajčák li>Russian – Alexander Samsonov俄语– 亚历山大·桑索诺夫 li>Chinese – Jincheng Shan中文– 金城山 li>Croatian – Borisa Djuraskovic from Web Hosting Hub克罗地亚语– 来自Web Hosting Hub的Borisa Djuraskovic li>Japanese – mt8日语– mt8 li> ul>
Code Snippets changes that by providing a GUI interface for adding snippets and actually running them on your site just as if they were in your theme’s functions.php file.
代码片段通过提供一个GUI界面来添加和添加实际上在您的网站上运行它们 strong>,就像它们位于主题的 functions.php code>文件中一样。 p>Code Snippets provides graphical interface, similar to the Plugins menu, for managing snippets.代码段提供了类似于“插件”菜单的图形界面,用于管理代码段。Snippets can can be activated and deactivated, just like plugins.片段可以像插件一样被激活和停用。The snippet editor includes fields for a name, a visual editor-enabled description, tags to allow you to categorize snippets, and a full-featured code editor.片段编辑器包括名称字段,启用可视编辑器的描述,允许您对片段进行分类的标记以及功能全面的代码编辑器。Snippets can be exported for transfer to another side, either in JSON for later importing by the Code Snippets plugin, or in PHP for creating your own plugin or theme.可以以JSON形式导出代码段以传输到另一端,以供以后通过Code Snippets插件导入,也可以以PHP形式创建自己的插件或主题。 p>If you have any feedback, issues, or suggestions for improvements please leave a topic in the Support Forum,如果您有任何反馈,问题或改进建议,请在支持论坛中保留一个主题,or join the community on Facebook.或在Facebook上加入社区。 p>If you like this plugin, or it is useful to you in some way, please consider reviewing it on 如果您喜欢此插件,或者对您有所帮助,请考虑在 WordPress.org.WordPress.org 。 p>If you'd like to contribute to the plugin's code or translate it into another language, you can fork the如果您想为插件的代码做出贡献或将其翻译成另一种语言,则可以分叉plugin on GitHub.GitHub上的插件。 p>Translations翻译 h4>Code Snippets can be used in these different languages thanks to the following translators:借助以下翻译器,代码片段可用于这些不同的语言: p>Danish – Finn Sommer Jensen丹麦文– 芬恩·索默·詹森 li>French – momo-fr and 法语– momo-fr 和"nofollow">Shea Bunge“ nofollow”>乳木果树 li>Belarusian – Hrank.com白俄罗斯语– Hrank.com li>Brazilian Portuguese – Bruno Borges巴西葡萄牙语-布鲁诺·博尔赫斯(Bruno Borges) li>French (Canada) – Dominic Desbiens法国(加拿大)– 多米尼克·德斯比恩斯 li>Indonesian – Jordan Silaen from ChameleonJohn.com印度尼西亚语– ChameleonJohn.com的乔丹·西兰(Jordan Silaen) li>German – Mario Siegmann, 德语– 马里奥·西格曼,rel="nofollow">Joerg Knoerchen, and David Deckerrel =“ nofollow”> Joerg Knoerchen 和 David Decker li>Dutch – Sander Spies荷兰语– 桑德尔间谍 li>Slovak – Ján Fajčák斯洛伐克语– JanFajčák li>Russian – Alexander Samsonov俄语– 亚历山大·桑索诺夫 li>Chinese – Jincheng Shan中文– 金城山 li>Croatian – Borisa Djuraskovic from Web Hosting Hub克罗地亚语– 来自Web Hosting Hub的Borisa Djuraskovic li>Japanese – mt8日语– mt8 li> ul>
functions.php code>文件中一样。 p>Code Snippets provides graphical interface, similar to the Plugins menu, for managing snippets.代码段提供了类似于“插件”菜单的图形界面,用于管理代码段。Snippets can can be activated and deactivated, just like plugins.片段可以像插件一样被激活和停用。The snippet editor includes fields for a name, a visual editor-enabled description, tags to allow you to categorize snippets, and a full-featured code editor.片段编辑器包括名称字段,启用可视编辑器的描述,允许您对片段进行分类的标记以及功能全面的代码编辑器。Snippets can be exported for transfer to another side, either in JSON for later importing by the Code Snippets plugin, or in PHP for creating your own plugin or theme.可以以JSON形式导出代码段以传输到另一端,以供以后通过Code Snippets插件导入,也可以以PHP形式创建自己的插件或主题。 p>If you have any feedback, issues, or suggestions for improvements please leave a topic in the Support Forum,如果您有任何反馈,问题或改进建议,请在支持论坛中保留一个主题,or join the community on Facebook.或在Facebook上加入社区。 p>If you like this plugin, or it is useful to you in some way, please consider reviewing it on 如果您喜欢此插件,或者对您有所帮助,请考虑在 WordPress.org.WordPress.org 。 p>If you'd like to contribute to the plugin's code or translate it into another language, you can fork the如果您想为插件的代码做出贡献或将其翻译成另一种语言,则可以分叉plugin on GitHub.GitHub上的插件。 p>Translations翻译 h4>Code Snippets can be used in these different languages thanks to the following translators:借助以下翻译器,代码片段可用于这些不同的语言: p>Danish – Finn Sommer Jensen丹麦文– 芬恩·索默·詹森 li>French – momo-fr and 法语– momo-fr 和"nofollow">Shea Bunge“ nofollow”>乳木果树 li>Belarusian – Hrank.com白俄罗斯语– Hrank.com li>Brazilian Portuguese – Bruno Borges巴西葡萄牙语-布鲁诺·博尔赫斯(Bruno Borges) li>French (Canada) – Dominic Desbiens法国(加拿大)– 多米尼克·德斯比恩斯 li>Indonesian – Jordan Silaen from ChameleonJohn.com印度尼西亚语– ChameleonJohn.com的乔丹·西兰(Jordan Silaen) li>German – Mario Siegmann, 德语– 马里奥·西格曼,rel="nofollow">Joerg Knoerchen, and David Deckerrel =“ nofollow”> Joerg Knoerchen 和 David Decker li>Dutch – Sander Spies荷兰语– 桑德尔间谍 li>Slovak – Ján Fajčák斯洛伐克语– JanFajčák li>Russian – Alexander Samsonov俄语– 亚历山大·桑索诺夫 li>Chinese – Jincheng Shan中文– 金城山 li>Croatian – Borisa Djuraskovic from Web Hosting Hub克罗地亚语– 来自Web Hosting Hub的Borisa Djuraskovic li>Japanese – mt8日语– mt8 li> ul>
Code Snippets provides graphical interface, similar to the Plugins menu, for managing snippets.
代码段提供了类似于“插件”菜单的图形界面,用于管理代码段。
Snippets can can be activated and deactivated, just like plugins.
片段可以像插件一样被激活和停用。
The snippet editor includes fields for a name, a visual editor-enabled description, tags to allow you to categorize snippets, and a full-featured code editor.
片段编辑器包括名称字段,启用可视编辑器的描述,允许您对片段进行分类的标记以及功能全面的代码编辑器。
Snippets can be exported for transfer to another side, either in JSON for later importing by the Code Snippets plugin, or in PHP for creating your own plugin or theme.
可以以JSON形式导出代码段以传输到另一端,以供以后通过Code Snippets插件导入,也可以以PHP形式创建自己的插件或主题。 p>
If you have any feedback, issues, or suggestions for improvements please leave a topic in the Support Forum,
如果您有任何反馈,问题或改进建议,请在支持论坛中保留一个主题,
or join the community on Facebook.
或在Facebook上加入社区。 p>
If you like this plugin, or it is useful to you in some way, please consider reviewing it on 如果您喜欢此插件,或者对您有所帮助,请考虑在 WordPress.org.WordPress.org 。 p>
如果您喜欢此插件,或者对您有所帮助,请考虑在 WordPress.org.
WordPress.org
If you'd like to contribute to the plugin's code or translate it into another language, you can fork the如果您想为插件的代码做出贡献或将其翻译成另一种语言,则可以分叉plugin on GitHub.GitHub上的插件。 p>
如果您想为插件的代码做出贡献或将其翻译成另一种语言,则可以分叉plugin on GitHub.
plugin on GitHub
GitHub上的插件
Code Snippets can be used in these different languages thanks to the following translators:
借助以下翻译器,代码片段可用于这些不同的语言: p>
"nofollow">Shea Bunge
“ nofollow”>乳木果树
rel="nofollow">Joerg Knoerchen, and David Decker
rel =“ nofollow”> Joerg Knoerchen 和 David Decker li>
ul>
ol>
wp-content/plugins/
wp-content / plugins / code>文件夹中 li>Activate the Code Snippets plugin from ‘Plugins’ page.从“插件”页面激活代码片段插件。 li>
Network Activating Code Snippets through the Network Dashboard will enable a special interface for running snippets across the entire network.
通过网络仪表板的网络激活代码段将为在整个网络上运行代码段提供特殊的界面。 p>
原文出处:http://www.sanshu.cn/a/7748.html
群主管理都是支付大佬