[wordpress插件] 中文超级工具箱(China Super ToolS)Chinese Super ToolS

wordpress 插件 文章 2020-03-23 03:30 596 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

一款高效的可扩展功能的wordpress代码片段管理插件,用户可以将一些常用功能的代码片段保存为单独的一个php文件并放置到插件wp-content/plugins/wp-china-tools/lib

An efficient and scalable wordpress code snippet management plugin. Users can save code snippets of some commonly used functions as a separate php file and place them in the plug-in wp-content / plugins / wp-china-tools / lib

/目录

/ Directory

在插件后台可以管理这些代码片段,并且插件会记录插件功能,时间长了用户也不会忘记自己加过什么代码。

These code snippets can be managed in the background of the plug-in, and the plug-in records the plug-in functions, and users will not forget what code they have added over time.

插件在载入用户 自定代码时会压缩代码合并所有代码并生成相关的集合文件,并以最高效的方式载入代码。

When the plug-in loads user-defined code, it compresses the code, merges all the code, generates related collection files, and loads the code in the most efficient way.

(例)添加自定义模块:

(Example) Add custom module:

/*

/ *

Module Name: Google Fonts

Module Name: Google Fonts

Module Effect: 替换后台与登录界面的谷歌字体链接

Module Effect: Replace Google Fonts link in background and login interface

Module Author: 维7维3

Module Author: Dimension 7 Dimension 3

*/

* /

function cst_replace_open_sans() {
      

function cst_replace_open_sans () {
      

wp_deregister_style(‘open-sans’);
      

wp_deregister_style (‘open-sans’);
      

wp_register_style( ‘open-sans’, ‘//fonts.useso.com/css?family=Open+Sans:300italic,400italic,600italic,300,400,600’ );
      

wp_register_style (‘open-sans’, ‘//fonts.useso.com/css?family=Open+Sans:300italic,400italic,600italic,300,400,600’);
      

wp_enqueue_style( ‘open-sans’);

wp_enqueue_style (‘open-sans’);

}

}

add_action( ‘init’, ‘cst_replace_open_sans’ );

add_action (‘init’, ‘cst_replace_open_sans’);

将代码保存为php文件放置到wp-content/plugins/wp-china-tools/lib/目录,然后登录后台扫描并生成引用文件即可使用自定义模块了。

Save the code as a php file and place it in the wp-content / plugins / wp-china-tools / lib / directory, then log in to the background to scan and generate the reference file to use the custom module.

官方网站:www.v7v3.com

Official website: www.v7v3.com

特色

Features

    1. 记录代码片段功能
    2. Record code snippet function

    3. 功能可扩展
    4. Extensible features

    5. 高效的代码载入方式
    6. Efficient code loading method

    7. 可在线安装插件作者预先定义好的代码片段
    8. You can install pre-defined code snippets by plugin authors online

    9. 可视化的代码片段操作控制台
    10. Visual snippet operation console

    11. 高效精简的代码保证插件的稳定型以及运行效率。

    12. Efficient and streamlined code ensures the stability and efficiency of the plug-in.

安装步骤

    1. 在WordPress 插件库中搜索”China Super ToolS”, 下载并启用
    2. Search for "China Super ToolS" in the WordPress plugin library, download and enable

    3. 在WordPress “Super ToolS”扫描和生成压缩的代码块文件
    4. Scan and generate compressed code block files in WordPress "Super ToolS"

    5. 在WordPress “Super ToolS -> CST在线扩展”可以在线添加各种预设代码片段
    6. Add various preset code snippets online in WordPress "Super ToolS-> CST Online Extension"

下载地址
https://downloads.wordpress.org/plugin/china-super.zip
-EOF-

AI助手支持GPT4.0