【子比主题】开发资源手册文档 非官方版本

子比主题(Zibll)开发资源手册

版本: V7.0+ 当前版本: V8.7+ | 日期: 2026-04-27 适用场景: 插件开发、主题定制、功能扩展

记录了子比主题 (Zibll) 中可用的各种资源,包括钩子、函数、类、数据库表、配󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥置选项等


目录结构概览

/wp-content/themes/zibll/
├── functions.php              # 主题入口文件
├── func.php                   # 自定义代码扩展文件(不会被覆盖)
├── inc/                       # 核心功能目录
│   ├── inc.php                # 核心加载器
│   ├── class/                 # 核心类库
│   │   ├── db-class.php       # 数据库操作类 zib_db
│   │   ├── api-audit-class.php# API审核类
│   │   ├── sms-class.php      # 短信类
│   │   └── express-class.php  # 物流查询类
│   ├── functions/             # 功能模块目录
│   │   ├── zib-*.php          # 核心功能函数
│   │   ├── user/              # 用户系统
│   │   ├── bbs/               # 论坛系统
│   │   ├── shop/              # 商城系统
│   │   └── message/           # 消息系统
│   ├── options/               # 选项配置
│   └── widgets/               # 小工具组件
├── zibpay/                    # 支付系统模块
│   ├── class/order-class.php  # 订单核心类 ZibPay
│   └── functions/             # 支付相关函数
├── action/                    # 前端交互处理
└── oauth/                     # 第三方登录

一、Action 钩子列表

核心页面钩子

钩子名称触发位置参数说明
zib_require_endinc/inc.php:118主题加载完成时触发
zib_single_beforeinc/functions/zib-single.php:18单页内容前
zib_single_afterinc/functions/zib-single.php:22单页内容后
zib_single_box_content_beforeinc/functions/zib-single.php:209单页主容器前
zib_single_box_content_afterinc/functions/zib-single.php:211单页主容器后
zib_posts_content_beforeinc/functions/zib-single.php:322文章内容前 $post
zib_posts_content_afterinc/functions/zib-single.php:332文章内容后 $post
zib_article_content_afterinc/functions/zib-single.php:366文章正文结束后 $post
zib_footer_conterfooter.php:20页脚内容区
zib_author_main_contentinc/functions/zib-author.php:121作者主页内容区

用户系统钩子

钩子名称触发位置参数说明
user_save_custom_avataraction/user.php:217保存自定义头像 $cuid, $img_id, $image_url
zib_user_bind_emailaction/user.php:480绑定邮箱 $cuid, $captcha_val, $email
zib_user_bind_phoneaction/user.php:564绑定手机 $cuid, $captcha_val, $old_phone
zib_user_update_bind_phoneaction/user.php:561更新绑定手机
updata_user_baninc/functions/user/user-ban.php:118更新用户封禁状态 $user_id, $type, $info
user_add_medalinc/functions/user/user_medal.php:52添加勋章 $user_id, $medal_args
user_remove_medalinc/functions/user/user_medal.php:108移除勋章 $medal_name
user_checkinedinc/functions/user/user-checkin.php:215用户签到完成 $user_id, $the_data
follow-useraction/action.php:95关注用户 $user_id, $_ed_id, count1, count2

支付系统钩子(最重要)

钩子名称触发位置参数说明
order_createdzibpay/class/order-class.php:776订单创建 $order_data
payment_order_successzibpay/class/order-class.php:898支付成功 $order对象
order_closedzibpay/class/order-class.php:933订单关闭 $order_id, $type, $reason
order_refundedzibpay/class/order-class.php:964订单退款 $order_id
delete_orderzibpay/class/order-class.php:407删除订单 $order_id
add_order_metazibpay/class/order-class.php:354添加订单元数据 $order_id, $meta_key, $meta_value
update_order_metazibpay/class/order-class.php:351更新订单元数据
delete_order_metazibpay/class/order-class.php:366删除订单元数据
save_order_metazibpay/class/order-class.php:357保存订单元数据
author_points_incomezibpay/functions/zibpay-income.php:369作者积分分成 $data, $pay_order
user_apply_withdrawzibpay/functions/ajax.php:308用户申请提现 $msg_args
withdraw_processzibpay/functions/zibpay-withdraw.php:477提现处理完成 $msg_db, $is_allow, $msg
pay_transferzibpay/functions/balance-ajax.php:150转账完成 $type, $current_user, $recipient_user, $price, $service_charge
zibpay_download_beforezibpay/download.php:63下载前验证 $post_id, $down_id, $paid, $file_url, $file_local

BBS论坛系统钩子

钩子名称触发位置参数说明
zib_pre_insert_postbbs/action/ajax-posts.php:755帖子插入前 $post_args
bbs_favorite_postsbbs/action/ajax-posts.php:147收藏帖子 $id, $user_id, $type
bbs_posts_essence_setbbs/action/ajax-posts.php:188设置精华 $post_id, $val
bbs_posts_topping_setbbs/action/ajax-posts.php:199设置置顶 $post_id, $topping
posts_is_hotbbs/inc/functions.php:577帖子设为热门 $post
plate_is_hotbbs/inc/functions.php:606版块设为热门 $plate
bbs_follow_platebbs/inc/plate.php:636关注版块 $id, $user_id
posts_plate_movebbs/inc/plate.php:993帖子迁移版块 $id, $new_id, $old_id
bbs_home_tab_content_topbbs/inc/home.php:38论坛首页标签顶部
bbs_home_tab_content_bottombbs/inc/home.php:40论坛首页标签底部
bbs_posts_page_content_topbbs/inc/single.php:19帖子页内容顶部
bbs_posts_page_content_bottombbs/inc/single.php:30帖子页内容底部
zib_bbs_posts_content_afterbbs/inc/single.php:128帖子内容后 $post
bbs_single_footerbbs/inc/single.php:154帖子页底部 $post
answer_adoptedbbs/inc/comment.php:264采纳答案 $comment, $desc
comment_is_hotbbs/action/ajax-posts.php:1344评论设为热门 $comment

评论系统钩子

钩子名称触发位置参数说明
comment_is_toppingaction/comment.php:112评论置顶 $comment
set_comment_cookiesaction/comment.php:248设置评论Cookie $comment, $user

商城系统钩子

钩子名称触发位置参数说明
shop_favorite_productshop/action/action.php:2187收藏商品 $id, $user_id
shop_product_page_content_aftershop/inc/single.php:250商品页内容后
zib_shop_initshop/shop.php:43商城初始化
shop_locate_template多处商城模板定位

消息系统钩子

钩子名称触发位置参数说明
zib_add_messagemessage/class/message-class.php:126添加消息 $values
zib_update_messagemessage/class/message-class.php:117更新消息 $values
zib_delete_messagemessage/class/message-class.php:311删除消息 $where
zib_message_set_metamessage/class/message-class.php:361设置消息元数据 $id, $key, $values
zib_message_set_statusmessage/class/message-class.php:380设置消息状态 $id, $values
zib_message_readedmessage/class/message-class.php:423消息已读 $id, $_user_id
zib_message_all_readedmessage/class/message-class.php:439全部已读 $where, $user_id

其他重要钩子

钩子名称触发位置参数说明
posts_views_recordaction/function.php:479记录文章浏览 $post_id, $new
ajax_get_current_useraction/function.php:511AJAX获取当前用户 $data['id'], $data
zib_ajax_frontend_links_submit_successaction/function.php:1008友链提交成功 $linkdata
wp_media_attach_actioninc/functions/zib-attachment.php:34附件操作 $action, $attachment_id, $parent_id
zib_frontend_set_saveinc/functions/zib-frontend-set.php:288前台设置保存 $object_data, $type
zib_use_invit_codeuser/invit-code.php:97使用邀请码 $user_id, $invit_code_obj
user_auth_apply_process_newmsguser/user-auth.php:422用户认证申请新消息
new_posts_pendingaction/new_posts.php:261新投稿待审核 $new_post_obj
zibll_update_noticesoptions/options.php:312主题更新通知 $version
zibll_new_install_noticesoptions/options.php:335新安装通知 $theme_version
zib_cfswidget_echo_beforewidgets/widget-class.php:36小工具输出前 $args, $class
zib_cfswidget_echo_afterwidgets/widget-class.php:53小工具输出后 $args

二、Filter 钩子列表

核心Filter(最常用)

钩子名称默认值参数说明使用示例
zibpay_payment_methods数组支付方式列表 $methods, $pay_type添加新支付方式
pre_order_create_data$order_data订单创建前数据修改订单数据
zibpay_order_title$_title订单标题 $_title, $order自定义订单标题
zibpay_is_allow_balance_paybool是否允许余额支付 $pay_type控制余额支付
zibpay_is_allow_card_pass_payfalse是否允许卡密支付启用卡密支付
not_repeat_create_order_type[1,2,5,6,11]不可重复下单的类型扩展限制类型
search_main_tabs_array数组搜索标签页添加搜索类型
search_types数组搜索类型扩展搜索范围
taxonomy_names数组分类法名称列表注册新分类法
author_main_tabs_array数组作者页标签添加作者页Tab
user_ctnter_main_tabs_array数组用户中心标签添加用户中心Tab
user_page_order_tabs数组用户订单标签添加订单类型Tab
integral_add_options数组积分获取选项添加积分规则

内容相关Filter

钩子名称说明
zib_get_excerpt文章摘要过滤
hidecontent_is_show隐藏内容是否显示
hidecontent_payshow_hide_content付费隐藏内容
the_content文章内容过滤(WordPress原生)
editable_slug可编辑别名
zib_add_bodyclass添加body类名
zib_theme_mode主题模式(亮/暗)
zib_theme_mode_button_positions主题模式按钮位置
zib_is_show_sidebar是否显示侧边栏

用户系统Filter

钩子名称说明
is_close_signup是否关闭注册
is_close_signin是否关闭登录
user_show_name用户显示名称
user_name_badge用户名徽章
user_avatar_badge头像徽章
user_medal_args勋章参数
user_count_badges徽章计数
user_page_header_desc用户页头部描述
user_center_account_setup账户设置内容
user_center_page_sidebar用户中心侧边栏
user_sidebar_statistics_args侧边栏统计参数
author_header_more_btn作者头部更多按钮
author_header_identity作者身份标识
author_header_drop_lists作者下拉菜单
author_favorite_types收藏类型
author_tab_favorite_count收藏数量

商城系统Filter

钩子名称说明
user_order_list_card订单卡片HTML
user_order_details_modal订单详情模态框
user_order_details_footer_right详情右下角按钮
user_order_details_footer_left详情左下角按钮
user_order_card_btns订单卡片按钮
zibpay_initiate_paysdk发起支付SDK
zibpay_posts_paid_box已付费内容框
zibpay_posts_pay_box付费内容框
zibpay_card_pass_payment_desc卡密支付描述
pay_order_price_is_allow_0允许0元订单

BBS论坛Filter

钩子名称说明
bbs_user_score_extra_max加分上限(默认5)
bbs_user_score_deduct_max减分上限(默认5)
bbs_plate_order_options版块排序选项
bbs_plate_tab_options版块标签选项
bbs_home_tab_options首页标签选项
bbs_home_tab_content_plate_before首页版块内容前
bbs_home_tab_content_plate_after首页版块内容后
bbs_is_hot_posts是否热门帖子
bbs_is_hot_plate是否热门版块
bbs_posts_order_options帖子排序选项
bbs_single_fixed_btns帖子页固定按钮
single_show_breadcrumbs显示面包屑导航
zibpay_is_show_paybutton显示支付按钮

编辑器和上传Filter

钩子名称默认值说明
tinymce_upload_filefalse允许上传文件
tinymce_upload_imgfalse允许上传图片
tinymce_upload_videofalse允许上传视频
tinymce_iframe_videofalse允许iframe视频
tinymce_hidefalse隐藏编辑器
tinymce_hide_payfalse隐藏付费内容
featured_image_editfalse编辑特色图片
featured_video_editfalse编辑特色视频
featured_slide_editfalse编辑幻灯片

评论系统Filter

钩子名称说明
comments_user_name_badge评论用户名徽章
comment_header评论头部
comment_footer_info评论底部信息
comment_topping_enabled启用评论置顶
comment_edit_enabled启用评论编辑
comments_action_lists评论操作列表

界面和UI Filter

钩子名称说明
zib_nav_radius_button导航圆角按钮
zib_widget_title小工具标题
zib_float_right右下角浮动按钮
footer_tabbar底部标签栏
echo_seo_title输出SEO标题
is_shop_cart_page是否购物车页
share_modal_header_text分享弹窗标题
poster_share_data海报分享数据
frontend_set_switch前台设置开关
zib_frontend_set_input_array前台设置输入项
zib_frontend_set_input_html前台设置HTML
zib_oauth_login_urlOAuth登录URL
new_add_btns_options新增按钮选项
message_cats消息分类
registration_errors注册错误(WP原生)
allow_password_reset允许密码重置(WP原生)
ajax_get_current_user_data当前用户数据

三、自定义数据库表

wp_zibpay_order(订单表)

CREATE TABLE `wp_zibpay_order` (
  `id` BIGINT(20) NOT NULL AUTO_INCREMENT,
  `user_id` BIGINT(20) DEFAULT NULL COMMENT '用户ID',
  `ip_address` varchar(50) DEFAULT NULL COMMENT 'IP地址',
  `product_id` varchar(50) DEFAULT NULL COMMENT '产品ID',
  `post_id` BIGINT(20) DEFAULT NULL COMMENT '文章ID',
  `post_author` BIGINT(20) DEFAULT NULL COMMENT '文章作者',
  `count` BIGINT(20) DEFAULT 1 COMMENT '数量',
  `order_num` varchar(50) DEFAULT NULL COMMENT '订单号',
  `order_price` double(10, 2) DEFAULT '0.00' COMMENT '订单价格',
  `order_type` varchar(50) DEFAULT '0' COMMENT '订单类型',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `payment_id` BIGINT(20) DEFAULT NULL COMMENT '支付ID',
  `pay_num` varchar(50) DEFAULT NULL COMMENT '支付订单号',
  `pay_type` varchar(50) DEFAULT '0' COMMENT '支付类型',
  `pay_price` double(10, 2) DEFAULT NULL COMMENT '支付金额',
  `pay_detail` longtext COMMENT '支付详情',
  `pay_time` datetime DEFAULT NULL COMMENT '支付时间',
  `referrer_id` BIGINT(20) DEFAULT NULL COMMENT '推荐人ID',
  `rebate_price` double(10, 2) DEFAULT '0.00' COMMENT '推荐佣金',
  `rebate_status` varchar(50) DEFAULT '0' COMMENT '佣金提现状态',
  `rebate_detail` longtext COMMENT '佣金提现详情',
  `income_price` double(10, 2) DEFAULT '0.00' COMMENT '作者分成',
  `income_status` varchar(50) DEFAULT '0' COMMENT '分成状态',
  `income_detail` longtext COMMENT '分成详情',
  `status` varchar(50) DEFAULT '0' COMMENT '订单状态',
  `other` longtext COMMENT '其它',
  PRIMARY KEY (`id`),
  KEY `user_id` (`user_id`),
  KEY `post_id` (`post_id`),
  KEY `order_num` (`order_num`),
  KEY `status` (`status`),
  KEY `order_type` (`order_type`)
);

订单类型 (order_type)

  • 1: 文章付费
  • 2: 资源下载
  • 3: VIP会员
  • 4: 充值
  • 5: 商城商品
  • 6: 打赏
  • 11: 版块关注付费

订单状态 (status)

  • 0: 待支付
  • 1: 已支付
  • 2: 已关闭
  • 3: 已退款

wp_zibpay_ordermeta(订单元数据表)

CREATE TABLE `wp_zibpay_ordermeta` (
  `meta_id` BIGINT(20) NOT NULL AUTO_INCREMENT,
  `order_id` bigint(20) NOT NULL DEFAULT 0,
  `meta_key` varchar(255) DEFAULT NULL,
  `meta_value` longtext,
  PRIMARY KEY (`meta_id`),
  KEY `order_id` (`order_id`),
  KEY `meta_key` (`meta_key`)
);

wp_zibpay_payment(支付记录表)

CREATE TABLE `wp_zibpay_payment` (
  `id` BIGINT(20) NOT NULL AUTO_INCREMENT,
  `method` varchar(255) DEFAULT NULL COMMENT '支付方式',
  `price` double(10, 2) DEFAULT '0.00' COMMENT '金额',
  `order_num` varchar(255) DEFAULT NULL COMMENT '订单号',
  `status` varchar(255) DEFAULT '0' COMMENT '状态',
  `create_time` datetime DEFAULT NULL COMMENT '创建时间',
  `pay_time` datetime DEFAULT NULL COMMENT '支付时间',
  `pay_num` varchar(255) DEFAULT NULL COMMENT '支付流水号',
  `order_data` longtext COMMENT '订单数据',
  PRIMARY KEY (`id`)
);

wp_zib_message(站内消息表)

CREATE TABLE `wp_zib_message` (
  `id` BIGINT(20) NOT NULL AUTO_INCREMENT,
  `send_user` varchar(2550) DEFAULT NULL COMMENT '发件人',
  `receive_user` longtext COMMENT '收件人',
  `readed_user` longtext COMMENT '已读用户',
  `type` varchar(50) DEFAULT NULL COMMENT '消息类型',
  `title` longtext COMMENT '标题',
  `content` longtext COMMENT '内容',
  `create_time` datetime DEFAULT '0000-00-00 00:00:00' COMMENT '创建时间',
  `modified_time` datetime DEFAULT '0000-00-00 00:00:00' COMMENT '更新时间',
  `parent` BIGINT(20) DEFAULT NULL COMMENT '父级',
  `status` BIGINT(20) DEFAULT '0' COMMENT '消息状态',
  `meta` longtext COMMENT '元数据',
  `other` longtext COMMENT '其它',
  PRIMARY KEY (`id`),
  KEY `type` (`type`),
  KEY `status` (`status`),
  KEY `parent` (`parent`)
);

wp_zibpay_card_password(卡密表)

-- 用于存储充值卡、优惠卡等卡密数据
-- 字段定义见 zibpay/class/card-pass.php

四、自定义文章类型和分类法

plate(论坛版块)

  • 分类法: plate_cat(版块分类,层级结构)
  • 支持: title, ex󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥cerpt, author
  • 层级: 是(hierarchical)
  • 图标: dashicons-buddicons-󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥forums
  • 查询变量: plate
// 获取版块
$plates = get_posts([
    'post_type' => 'plate',
    'posts_per_page' => -1,
]);

// 获取版块下的帖子
$posts = get_posts([
    'post_type' => 'forum_post',
    'meta_query' => [
        [
            'key' => 'plate_id',
            'value' => $plate_id,
        ]
    ]
]);

forum_post(论坛帖子)

  • 分类法:
    • forum_topic(话题/分类,非层级)
    • forum_tag(标签,非层级)
  • 支持: title, editor, excer󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥pt, comments, author
  • 层级: 否
  • 图标: dashicons-buddicons-󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥topics
  • REST API: 支持(可配置)
// 获取热门帖子
$hot_posts = get_posts([
    'post_type' => 'forum_post',
    'posts_per_page' => 10,
    'meta_key' => 'views',
    'orderby' => 'meta_value_num',
    'order' => 'DESC'
]);

shop_product(商城商品)

  • 分类法:
    • shop_cat(商品分类,层级结构)
    • shop_discount(优惠活动,非层级)
    • shop_tag(商品标签,非层级)
  • 支持: title, editor, comments, au󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥thor
  • 层级: 否
  • 图标: dashicons-store
  • REST API: 支持
// 获取商品
$products = get_posts([
    'post_type' => 'shop_product',
    'posts_per_page' => 12,
    'tax_query' => [
        [
            'taxonomy' => 'shop_cat',
            'field' => 'term_id',
            'terms' => $category_id
        ]
    ]
]);

topics(文章专题/话题)

  • 关联: post(标准文章)
  • 用途: 对文章进行分组归类

五、核心类库

最重要核心类

1. ZibPay – 支付订单系统

文件:z󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥ibpay/class/order-class.php:24

class ZibPay {
    // 静态属性
    public static $payment_order_num_prefix = '520';  // 订单号前缀
    public static $order_table_name = 'zibpay_order';
    public static $order_meta_table_name = 'zibpay_ordermeta';
    public static $payment_table_name = 'zibpay_payment';

    // 核心方法
    public static function create_db();                          // 创建数据库表
    public static function get_order($order_id);                // 获取订单
    public static function create_order($order_data);           // 创建订单 
    public static function update_order_status($order_id, $status); // 更新状态
    public static function get_orders($args);                   // 查询订单列表
    public static function delete_order($order_id);             // 删除订单
    public static function add_order_meta($order_id, $key, $value); // 添加元数据
    public static function get_order_meta($order_id, $key);     // 获取元数据
    public static function update_order_meta($order_id, $key, $value); // 更新元数据
}

使用示例

// 创建订单
$order_data = [
    'user_id'     => get_current_user_id(),
    'post_id'     => 123,
    'order_price' => 9.99,
    'order_type'  => 1, // 文章付费
    'product_id'  => 'post_123'
];
$order = ZibPay::create_order($order_data);

// 查询订单
$order = ZibPay::get_order($order_id);
echo '订单状态: ' . $order->status;

2. zib_db – 数据库查询构建器

文件:inc/class/db-class.p󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥hp:58

class zib_db {
    // 链式查询方法
    public function table($table, $alias = null);       // 设置表名
    public function name($name);                         // 设置表名(自动加前缀)
    public function where($where, ...$args);             // WHERE条件
    public function whereOr($where, ...$args);           // OR条件
    public function whereIn($field, $values);            // IN条件
    public function whereLike($field, $value);           // LIKE条件
    public function whereBetween($field, $values);       // BETWEEN条件
    public function whereTime($field, ...$args);         // 时间条件
    public function join($table, $on, $type = 'INNER');  // JOIN
    public function order($order, $direction = 'ASC');   // 排序
    public function limit($limit, $offset = 0);          // 限制
    public function page($page, $page_size);              // 分页
    public function field($field);                        // 查询字段
    public function group($group);                        // 分组

    // CRUD操作
    public function insert($data);                        // 插入
    public function insertGetId($data);                   // 插入并返回ID
    public function update($data, $where = null);         // 更新
    public function delete($where = null);                 // 删除
    public function find($where = null);                  // 查找单条
    public function select($where = null);                // 查找多条
    public function count($where = null);                 // 计数
    public function sum($field, $where = null);           // 求和
    public function max($field, $where = null);           // 最大值
    public function min($field, $where = null);           // 最小值
    public function avg($field, $where = null);           // 平均值

    // 结果处理
    public function result();                             // 获取结果
    public function toArray();                            // 转数组
    public function toArrayMap($callback);                // 映射处理
    public function getSql();                             // 获取SQL
    public function buildSql();                           // 构建子查询SQL
}

使用示例

// 基本查询
$db = new zib_db();
$user = $db->name('users')
    ->where(['ID' => 1])
    ->find()
    ->toArray();

// 复杂查询
$orders = (new zib_db())
    ->name('zibpay_order')
    ->where(['status' => 1])
    ->whereIn('order_type', [1, 2, 5])
    ->whereBetween('pay_time', ['2026-01-01', '2026-04-27'])
    ->orderBy(['pay_time' => 'DESC'])
    ->limit(10)
    ->select()
    ->toArray();

// 统计
$total = (new zib_db())
    ->name('zibpay_order')
    ->where(['status' => 1])
    ->sum('pay_price');

// 插入数据
$insertId = (new zib_db())
    ->name('custom_table')
    ->insertGetId([
        'name' => '测试',
        'created_at' => current_time('mysql')
    ]);

// 更新数据
(new zib_db())
    ->name('custom_table')
    ->where(['id' => 1])
    ->update(['name' => '更新后的名称']);

// Meta查询(复杂关联查询)
$posts = (new zib_db())
    ->name('posts')
    ->alias('p')
    ->metaQuery(
        [
            ['key' => 'price', 'value' => 100, 'compare' => '<=', 'order' => 'ASC'],
            ['key' => 'status', 'value' => 'active'],
            'relation' => 'AND'
        ],
        ['ID', 'post_id'],
        'postmeta'
    )
    ->where(['p.post_status' => 'publish'])
    ->limit(10)
    ->select()
    ->toArray();

3. ZibMsg – 站内消息系统

文件:inc/functions/mess󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥age/class/message-class.php:18

class ZibMsg {
    public static function create_db();
    public static function add($data);                      // 发送消息
    public static function get($where);                     // 获取消息
    public static function get_list($args);                 // 消息列表
    public static function set_readed($id, $user_id);       // 标记已读
    public static function set_all_readed($user_id);        // 全部已读
    public static function delete($where);                  // 删除消息
    public static function set_status($id, $status);        // 设置状态
    public static function set_meta($id, $key, $value);     // 设置元数据
    public static function get_unread_count($user_id);      // 未读数量
}

使用示例

// 发送系统消息
ZibMsg::add([
    'send_user'    => 'system',
    'receive_user' => [$user_id],
    'type'         => 'notice',
    'title'        => '系统通知',
    'content'      => '您的订单已支付成功!'
]);

// 获取用户未读消息数
$count = ZibMsg::get_unread_count(get_current_user_id());

功能模块类

4. zib_bbs – BBS论坛系统

文件:inc/functions/bbs/inc/cl󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥ass.init.php:15

5. zib_shop – 商城系统

文件:inc/󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥functions/shop/inc/class.init.php:14

6. zib_ms – 模板系统

文件:inc/class/ms-class.󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥php:15

7. ZibSMS – 短信服务

文件:inc/class/sms-󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥class.php:20

8. ZibExpress – 物流查询

文件:inc/class/exp󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥ress-class.php:15

9. ZibAudit – API审核

文件:inc/class/api-audit-c󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥lass.php:14

10. ZibWeChatShare – 微信分享

文件:inc/functions/zib-share-wechat.󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥php:18

11. ZibFile – 文件处理

文件:inc/class/file-class.ph󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥p:14

12. zib_file_chunk – 大文件分片上传

文件:inc/fun󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥ctions/zib-attachment.php:442

13. zib_bbs_edit – BBS编辑器

文件:inc/funct󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥ions/bbs/inc/edit.php:14

14. TxSDK_Send – 腾讯云SDK

文件:inc/class/tx-sd󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥k-send.php:14

UI组件类

小工具类(Widgets)

  • widget󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥_ui_user_lists – 用户列表
  • widget󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥_ui_main_tab_posts – 主Tab文章
  • widget_ui_mini_tab_posts – 迷󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥你Tab文章
  • widget_u󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥i_mini_posts – 迷你文章
  • widget_ui_󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥mian_posts – 主文章列表
  • widget_ui_oneline_post󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥s – 单行文章
  • widget_ui_tag_cl󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥oud – 标签云
  • widge󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥t_ui_search – 搜索框
  • widget_ui_notice –󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥 公告
  • widget_ui_links_lists_2 – 链接󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥列表
  • widget_ui_new_co󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥mment – 最新评论
  • widget󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥_ui_posts_navs – 文章导航
  • wi󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥dget_ui_yiyan – 一言
  • widget_ui_sli󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥der – 轮播图
  • Zib_CFSwidget 󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥– CFS框架小工具基类

🔧 辅助类

QRcode相关类

  • qrstr – QR码字符串处理
  • QRtools – QR码工具
  • QRspec – QR码规格
  • QRimage – QR码图像生成

MeiliSearch搜索

  • Client 󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥– MeiliSearch客户端
  • ZibMeilisearch󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥Index – 索引管理
  • Zib󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥MeilisearchHttp – HTTP请求
  • ZibMe󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥ilisearchResult – 结果处理

其他辅助类

  • IPQuery – IP地址查询
  • zib_walker_nav_menu – 导航菜单󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥Walker
  • zib_auto_add_user_medal – 自动添加勋󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥章
  • zib_󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥user_float_data – 用户浮动数据
  • zib_user_level_integ󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥ral_add – 用户等级积分
  • CFS_Module – 选项模块
  • BBS_CFS_Mod󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥ule – BBS选项模块
  • zib_shop_csf_module – 󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥商城选项模块
  • post_cust󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥om_filter – 文章自定义筛选
  • zib_po󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥st_bulk_edit – 文章批量编辑
  • zib_admin_add_term_s󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥eo – 分类SEO
  • Zib_Private – 私信系统
  • z󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥ib_bbs_posts_bulk_edit – BBS批量编辑
  • Zi󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥bCodeUpdeta – 代码更新

六、核心函数库

用户系统函数

// 用户基础
is_close_signup();                              // 是否关闭注册
is_close_signin();                              // 是否关闭登录
user_show_name($args);                          // 获取显示名称
user_name_badge($user_id);                      // 用户名徽章
user_avatar_badge($user_id);                    // 头像徽章
user_count_badges($user_id);                    // 徽章计数

// 用户中心
user_page_header_desc($user_id);                // 页面头部描述
user_ctnter_main_tabs_array();                  // 主标签数组
user_center_page_sidebar($user_id);             // 侧边栏
user_sidebar_statistics_args($user_id, $args);  // 统计参数
user_center_account_setup($html, $user_id);     // 账户设置

// 权限验证
zib_current_user_can($capability, ...$args);    // 权限检查

// 勋章系统
user_add_medal($user_id, $medal_args);          // 添加勋章
user_remove_medal($medal_name);                 // 移除勋章
user_medal_args($args);                         // 勋章参数过滤

// 签到
user_checkined($user_id, $the_data);            // 签到完成

// 封禁
updata_user_ban($user_id, $type, $info);        // 更新封禁状态

文章/内容函数

// 文章操作
zib_get_excerpt($post);                         // 获取摘要
zib_is_show_sidebar();                          // 是否显示侧边栏
posts_views_record($post_id, $new);             // 记录浏览量
query_mate_orderby_keys();                      // 查询排序键

// 内容隐藏
hidecontent_is_show($type);                     // 隐藏内容是否显示
hidecontent_payshow_hide_content(...);          // 付费隐藏内容

// 编辑器
// 通过filter控制:tinymce_upload_img, tinymce_hide 等

BBS论坛函数

// 版块操作
zib_bbs_get_plate($posts_id);                  // 获取版块
zib_bbs_get_the_plate($post);                   // 获取当前帖子的版块
zib_bbs_get_the_plate_id($post);                // 获取版块ID
zib_bbs_get_plate_id($posts_id);                // 获取版块ID
zib_bbs_get_plate_header($plate_id);            // 版块头部
zib_bbs_get_plate_card($class);                 // 版块卡片
zib_bbs_get_main_plate($class);                 // 主版块
zib_bbs_get_plate_query($args);                 // 版块查询
zib_bbs_get_plate_main_lists($args);            // 版块列表
zib_bbs_get_plate_slide_card($args);            // 轮播版块
zib_bbs_get_plate_count_mates($plate_id);       // 版块统计
zib_bbs_get_plate_posts_count($post, $today);   // 帖子数量
zib_bbs_get_plate_reply_count($id, $today);     // 回复数量
zib_bbs_get_plate_views_cut_count($id);         // 浏览数量
zib_bbs_get_plate_follow_cut_count($id);        // 关注数量
zib_bbs_is_followed_plate($plate_id, $user_id);// 是否已关注
zib_bbs_follow_plate_toggle($id, $user_id);     // 切换关注
zib_bbs_get_plate_follow_pay_options($plate_id);// 关注付费配置
zib_bbs_get_plate_follow_pay_price(...);        // 关注价格
zib_bbs_posts_plate_move($id, $new, $old);      // 迁移帖子
zib_bbs_plates_move($new_id, $old_id);          // 迁移版块

// 帖子操作
zib_bbs_get_plate_order_options();              // 排序选项
zib_bbs_get_plate_type_options();               // 版块类型
zib_bbs_get_plate_tab_nav($options, $index);    // 标签导航
zib_bbs_get_plate_tab_content($options, $index); // 标签内容
zib_bbs_get_meta_filter_query($metas, $args);   // Meta查询

// 统计
zib_bbs_get_user_plate_count($user_id);         // 用户版块数
zib_bbs_get_user_posts_count($user_id);         // 用户帖子数

商城函数

// 商品操作
zib_shop_get_product_config($post_id, $key);    // 商品配置
zib_shop_save_product_config($post_id, $k, $v); // 保存配置
zib_shop_get_product_display_price($id, $opts); // 显示价格
zib_shop_get_product_sales_volume($id);         // 销量
zib_shop_update_product_sales_volume($id, $n);  // 更新销量
zib_shop_get_product_score($product_id);        // 评分
zib_shop_update_product_score($id, $data);      // 更新评分
zib_shop_get_product_thumbnail($post, $cls);    // 缩略图
zib_shop_get_product_link($id, $class, $text);  // 商品链接
zib_shop_get_product_service($id);              // 服务标识
zib_shop_get_product_after_sale_opt($id);       // 售后选项
zib_shop_get_product_rebate_config($id);        // 佣金配置
zib_shop_get_product_shipping_fee_config($id);  // 运费配置
zib_shop_get_product_limit_buy_config($id);     // 限购配置
zib_shop_get_product_discount_badges($id);      // 折扣徽章
zib_shop_product_deduct_stock($id, $opt, $cnt); // 扣减库存
zib_shop_product_add_stock($id, $opt, $cnt);    // 增加库存
zib_shop_get_product_in_turn_config($id, $key); // 轮播配置
zib_shop_get_product_opt_stock($id, $opt);      // 规格库存
zib_shop_get_product_email_fill_config($id);    // 邮箱配置
zib_shop_product_is_open_comment($id);          // 是否开启评论
zib_shop_product_is_allow_guest_buy($id);       // 是否允许游客购买
zib_shop_get_product_favorite_btn(...);         // 收藏按钮
zib_shop_get_product_share_btn($id, $class);    // 分享按钮
zib_shop_get_user_bought_count($uid, $pid);     // 购买次数
zib_shop_product_options_to_string($keys);      // 规格转字符串
zib_shop_product_options_to_array($str);        // 字符串转规格
zib_shop_product_options_is_exists($id, $keys); // 规格是否存在

// 评论评价
zib_shop_get_comment_count($post);              // 评论数
zib_shop_update_order_comment_status($id, $st); // 更新状态
zib_shop_get_order_comment_status($id);         // 获取状态
zib_shop_get_order_comment_status_name($st);    // 状态名称
zib_shop_get_order_comment_over_time($id);      // 评价截止时间
zib_shop_order_auto_comment($id);               // 自动评价
zib_shop_order_comment_handle($order, $data);   // 处理评价
zib_shop_get_score_average_name_data($score);   // 评分数据
zib_shop_comment_paginate();                     // 评论分页
zib_shop_comments_template_query_args($args);   // 查询参数
zib_shop_update_product_score_counts(...);       // 更新统计
zib_shop_get_comment_link($link, $comment);     // 评论链接

支付函数

// 订单操作
ZibPay::create_order($data);                    // 创建订单
ZibPay::get_order($id);                         // 获取订单
ZibPay::get_orders($args);                      // 订单列表
ZibPay::update_order_status($id, $status);      // 更新状态
ZibPay::delete_order($id);                      // 删除订单

// 元数据
ZibPay::add_order_meta($id, $key, $val);        // 添加元数据
ZibPay::get_order_meta($id, $key);              // 获取元数据
ZibPay::update_order_meta($id, $key, $val);     // 更新元数据
ZibPay::delete_order_meta($id, $key);           // 删除元数据

// 支付方式
zibpay_payment_methods($methods, $pay_type);     // 支付方式过滤
zibpay_is_allow_balance_pay($pay_type);         // 余额支付
zibpay_is_allow_card_pass_pay($pay_type);       // 卡密支付

// 价格和标题
zibpay_order_title($title, $order);             // 订单标题
pay_order_price_is_allow_0();                   // 允许0元

// 用户订单展示
user_order_list_card('', $type, $order);        // 订单卡片
user_order_details_modal('', $type, $order);    // 详情模态框
user_order_details_footer_right('', $order);    // 底部右侧
user_order_details_footer_left('', $order);     // 底部左侧
user_order_card_btns($_btns, $order);           // 卡片按钮

// 其他
zibpay_initiate_paysdk($sdk, $order_data);      // 发起支付SDK
zibpay_posts_paid_box('', $mate, $post_id);     // 已付费框
zibpay_posts_pay_box('', $mate, $post_id);      // 付费框

消息函数

ZibMsg::add($data);                             // 发送消息
ZibMsg::get($where);                            // 获取消息
ZibMsg::get_list($args);                        // 消息列表
ZibMsg::set_readed($id, $user_id);              // 标记已读
ZibMsg::set_all_readed($user_id);               // 全部已读
ZibMsg::delete($where);                         // 删除消息
ZibMsg::set_status($id, $status);               // 设置状态
ZibMsg::set_meta($id, $key, $value);            // 设置元数据
ZibMsg::get_unread_count($user_id);             // 未读数量

工具函数

// 主题设置
zib_theme_mode();                               // 主题模式
zib_theme_mode_button_positions();              // 模式按钮位置
zib_add_bodyclass($class);                      // body类名
zib_is_show_sidebar_filter();                   // 侧边栏过滤器
zib_get_excerpt($excerpt, $post);               // 获取摘要

// 搜索
search_main_tabs_array($tabs);                  // 搜索标签
search_facets_datas($_data);                    // 搜索面数据
search_orderby_array($order);                   // 排序方式
search_types($types);                           // 搜索类型

// 作者页
author_header_more_btn('', $author_id);         // 更多按钮
author_header_identity('', $author_id);         // 身份标识
author_main_tabs_array($tabs, $author_id);      // 主标签
author_favorite_types($args, $author_id);       // 收藏类型
author_header_drop_lists($lists, $author_id);   // 下拉菜单
author_tab_favorite_count($count, $author_id); // 收藏数

// 分类
taxonomy_names($names);                         // 分类法名称

// 前端设置
frontend_set_switch($is_on);                    // 开关
zib_frontend_set_save($data, $type);            // 保存设置
zib_frontend_set_input_array(...);              // 输入项数组
zib_frontend_set_input_html(...);               // 输入项HTML

// 附件
featured_image_edit(false, $post_id);           // 特色图片编辑
featured_video_edit(false, $post_id);           // 特色视频编辑
featured_slide_edit(false, $post_id);           // 幻灯片编辑

// 评论
comments_user_name_badge('', $comment);         // 用户名徽章
comment_header($html, $comment);                // 评论头部
comment_footer_info($info, $comment, $depth);   // 评论底部
comment_topping_enabled(true);                  // 置顶开关
comment_edit_enabled(true);                     // 编辑开关
comments_action_lists($lists, $comment);        // 操作列表

// 导航
zib_nav_radius_button($but, $user_id);          // 导航按钮

// 页脚
zib_float_right($btn);                          // 浮动按钮
footer_tabbar(false);                           // 底部标签栏
is_shop_cart_page(false);                       // 购物车页

// 小工具
zib_widget_title($instance);                    // 小工具标题
zib_cfswidget_echo_before($args, $class);       // 小工具前
zib_cfswidget_echo_after($args);                // 小工具后

// OAuth
zib_oauth_login_url('', $type);                 // 登录URL

// 海报分享
poster_share_data($data, $obj, $id);            // 海报数据
share_modal_header_text('分享内容');            // 分享标题

// 积分
integral_add_options($options);                 // 积分选项

// 邀请码
zib_use_invit_code($user_id, $code_obj);        // 使用邀请码

七、AJAX接口列表

支付相关

wp_ajax_initiate_pay / wp_ajax_nopriv_initiate_pay     // 发起支付
wp_ajax_check_pay / wp_ajax_nopriv_check_pay             // 检查支付状态
wp_ajax_points_initiate_pay / nopriv                     // 积分支付
wp_ajax_get_gzh_open_id / nopriv                         // 获取公众号OpenID

BBS论坛AJAX

wp_ajax_plate_select_lists_tab / nopriv                   // 版块选择列表
wp_ajax_plate_delete / wp_ajax_posts_delete               // 删除版块/帖子
wp_ajax_plate_edit_modal                                  // 版块编辑弹窗
wp_ajax_set_add_limit_modal                               // 设置发布权限弹窗
wp_ajax_save_add_limit                                    // 保存发布权限
wp_ajax_save_plate                                        // 保存版块
wp_ajax_plate_allow_view_set_modal                        // 查看权限弹窗
wp_ajax_plate_edit_allow_view                             // 编辑查看权限
wp_ajax_plate_follow_pay_set_modal                        // 关注付费弹窗
wp_ajax_plate_edit_follow_pay                             // 编辑关注付费
wp_ajax_follow_plate / nopriv                              // 关注版块
wp_ajax_follow_plate_confirm / nopriv                      // 确认关注
wp_ajax_score_extra / nopriv                               // 加分
wp_ajax_score_deduct / nopriv                              // 减分
wp_ajax_favorite_posts                                     // 收藏帖子
wp_ajax_posts_meta_save                                   // 保存帖子Meta
wp_ajax_posts_topping_set_modal                           // 置顶设置弹窗
wp_ajax_posts_allow_view_set_modal                        // 查看权限弹窗
wp_ajax_posts_plate_move                                  // 迁移帖子
wp_ajax_posts_plate_move_modal                            // 迁移弹窗
wp_ajax_delete_modal                                      // 删除确认弹窗
wp_ajax_posts_comment_close_modal                         // 关闭评论弹窗
wp_ajax_posts_comment_close                               // 关闭评论
wp_ajax_plate_or_posts_audit                              // 审核
wp_ajax_plate_or_posts_delete_revoke                      // 撤销删除
wp_ajax_score_user_lists                                  // 评分用户列表
wp_ajax_edit_posts                                        // 编辑帖子
wp_ajax_edit_posts_bbs_type                               // 编辑帖子类型
wp_ajax_edit_posts_vote                                   // 编辑投票
wp_ajax_edit_allow_view                                   // 编辑查看权限
wp_ajax_submit_vote                                       // 提交投票
wp_ajax_apply_moderator_modal                             // 申请版主弹窗
wp_ajax_comment_set_hot                                   // 设置热评
wp_ajax_edit_posts_featured                               // 设置精华

八、配置选项API

主题选项函数

/**
 * 获取主题选项值
 * @param string $option 选项键名
 * @param mixed $default 默认值
 * @return mixed
 */
_pz($option, $default = '');

// 使用示例
$logo = _pz('logo_url');
$primary_color = _pz('theme_color_primary', '#ff6b6b');
$is_open_shop = _pz('shop_s');

// 常用选项键名(部分):
// - logo_url: Logo地址
// - theme_color_primary: 主题色
// - shop_s: 商城开关 (true/false)
// - close_signup: 关闭注册
// - close_signin: 关闭登录
// - bbs_s: 论坛开关
// - vip_s: VIP开关

选项模块注册

主题使用 Codestar Framework (CSF) 进行选项管理:

// 注册主题选项
CSF::createOptions($id, $args);

// 注册分类法选项
CSF::createTaxonomyOptions($id, $taxonomy, $args);

// 注册元框选项
CSF::createMetabox($id, $args);

// 注册小工具选项
CSF::createWidgetOptions($id, $args);

// 核心选项模块类:
CFS_Module::init();                    // 主题选项模块
BBS_CFS_Module::init();                // BBS论坛选项
zib_shop_csf_module::init();          // 商城选项

CSF Framework 钩子

// 通用CSF钩子(适用于所有选项类型)
do_action("csf_{$unique}_save_before", $data, ...);   // 保存前
do_action("csf_{$unique}_save_after", $data, ...);    // 保存后
do_action("csf_{$unique}_saved", $data, ...);          // 保存完成
apply_filters("csf_{$unique}_args", $args, $this);     // 参数过滤
apply_filters("csf_{$unique}_sections", $sections, $this); // 板块过滤
apply_filters("csf_{$unique}_save", $data, ...);       // 保存数据过滤

// 特定类型钩子
do_action('csf_init');                    // CSF初始化
do_action('csf_loaded');                  // CSF加载完成
do_action('csf_enqueue');                 // CSF资源加载
do_action('csf_options_before');          // 选项页面前
do_action('csf_options_after');           // 选项页面后

九、插件开发最佳实践

推荐的挂钩位置

1. 监听支付成功(最重要)

/**
 * 支付成功回调 - 用于自动发货、发放虚拟资源等
 */
add_action('payment_order_success', 'my_plugin_on_payment_success', 10, 1);
function my_plugin_on_payment_success($order) {
    // $order 是订单对象,包含所有订单信息
    $user_id = $order->user_id;
    $post_id = $order->post_id;
    $order_price = $order->pay_price;
    $order_type = $order->order_type;

    // TODO: 你的业务逻辑
    // 例如:发放VIP、发送通知、自动发货等
}

2. 修改订单创建数据

/**
 * 在订单创建前修改数据
 */
add_filter('pre_order_create_data', 'my_plugin_modify_order_data', 10, 1);
function my_plugin_modify_order_data($order_data) {
    // 添加自定义字段
    $order_data['other'] = json_encode([
        'plugin_version' => '1.0.0',
        'custom_field'   => 'value'
    ]);

    return $order_data;
}

3. 扩展支付方式

/**
 * 添加自定义支付方式
 */
add_filter('zibpay_payment_methods', 'my_plugin_add_payment_method', 10, 2);
function my_plugin_add_payment_method($methods, $pay_type) {
    $methods['custom_pay'] = [
        'name'   => '自定义支付',
        'icon'   => 'fa fa-credit-card',
        'desc'   => '使用自定义支付网关',
    ];
    return $methods;
}

/**
 * 自定义支付发起处理
 */
add_filter('zibpay_initiate_paysdk', 'my_plugin_custom_pay_sdk', 10, 2);
function my_plugin_custom_pay_sdk($pay_sdk, $order_data) {
    if ($order_data['pay_type'] === 'custom_pay') {
        // 返回自定义SDK数据
        return [
            'type' => 'custom',
            'data' => [...]
        ];
    }
    return $pay_sdk;
}

4. 论坛帖子插入前验证

/**
 * 帖子发布前验证或修改
 */
add_action('zib_pre_insert_post', 'my_plugin_validate_post', 10, 1);
function my_plugin_validate_post($post_args) {
    // 可以在这里进行内容审核、敏感词过滤等
    // 如果需要阻止发布,可以抛出异常或返回错误

    // 示例:检查是否包含敏感词
    $sensitive_words = ['违规词1', '违规词2'];
    $content = $post_args['post_content'] ?? '';

    foreach ($sensitive_words as $word) {
        if (strpos($content, $word) !== false) {
            wp_send_json_error('内容包含敏感词汇');
        }
    }
}

5. 用户中心扩展

/**
 * 添加用户中心Tab
 */
add_filter('user_ctnter_main_tabs_array', 'my_plugin_add_user_tab', 10, 1);
function my_plugin_add_user_tab($tabs) {
    $tabs['my_plugin'] = [
        'title' => '我的插件',
        'icon'  => 'fa fa-plug',
        'callback' => 'my_plugin_render_user_tab'
    ];
    return $tabs;
}

function my_plugin_render_user_tab() {
    echo '<div class="box-body">插件内容区域</div>';
}

6. 文章内容扩展

/**
 * 在文章内容后添加自定义内容
 */
add_action('zib_posts_content_after', 'my_plugin_add_content_after', 10, 1);
function my_plugin_add_content_after($post) {
    if ($post->post_type === 'post') {
        echo '<div class="my-plugin-content">自定义内容</div>';
    }
}

7. 添加自定义文章Meta Box

/**
 * 在后台文章编辑页添加Meta Box
 */
add_filter('zib_add_pay_meta_box_meta', 'my_plugin_add_metabox_meta', 10, 1);
function my_plugin_add_metabox_meta($meta) {
    $meta[] = [
        'id'      => 'my_plugin_meta',
        'title'   => '插件设置',
        'fields'  => [
            [
                'id'      => 'enable_feature',
                'type'    => 'switcher',
                'title'   => '启用功能',
                'default' => true,
            ],
        ]
    ];
    return $meta;
}

推荐的代码放置位置

根据子比主题的架构,建议将自定义󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥代码放在以下位置:

方案1:func.php(推荐)

/wp-content/themes/zibll/func.php

优点

  • ✅ 在线更新主题时不会被覆盖
  • ✅ 自动加载,无需手动引入
  • ✅ 适合中小型功能扩展

示例

<?php
/**
 * Plugin Name: 我的子比扩展
 * Description: 子比主题功能扩展
 * Version: 1.0.0
 */

// 支付成功处理
add_action('payment_order_success', function($order){
    // 业务逻辑...
}, 10, 1);

方案2:独立插件(最佳生产实践)

创建独立插件文件:/wp-content/plugins/my-zibll-plugin/my-zibll-plugin.php

优点

  • ✅ 完全独立,不影响主题文件
  • ✅ 可以通过插件市场分发
  • ✅ 便于版本管理和更新
  • ✅ 符合WordPress开发规范

示例插件结构

my-zibll-plugin/
├── my-zibll-plugin.php      # 主文件
├── includes/
│   ├── class-payment.php    # 支付处理
│   ├── class-user.php       # 用户功能
│   └── functions.php        # 工具函数
└── assets/
    ├── css/
    │   └── style.css
    └── js/
        └── script.js

主文件示例

<?php
/**
 * Plugin Name: 子比主题扩展插件
 * Plugin URI: https://dwoyun.com
 * Description: 为子比主题提供额外的功能扩展
 * Version: 1.0.0
 * Author: 呆窝云
 * Author URI: https://dwoyun.com
 * Text Domain: my-zibll-plugin
 */

if (!defined('ABSPATH')) exit;

define('MY_ZIBLL_VERSION', '1.0.0');
define('MY_ZIBLL_PATH', plugin_dir_path(__FILE__));
define('MY_ZIBLL_URL', plugin_dir_url(__FILE__));

class My_Zibll_Plugin {

    public function __construct() {
        add_action('plugins_loaded', [$this, 'init']);
    }

    public function init() {
        // 检查主题是否为子比
        $theme = wp_get_theme();
        if ($theme->get('TextDomain') !== 'zibll') {
            add_action('admin_notices', function(){
                echo '<div class="error"><p>本插件需要子比主题才能正常工作</p></div>';
            });
            return;
        }

        // 加载文件
        require_once MY_ZIBLL_PATH . 'includes/functions.php';
        require_once MY_ZIBLL_PATH . 'includes/class-payment.php';
        require_once MY_ZIBLL_PATH . 'includes/class-user.php';

        // 挂载钩子
        $this->setup_hooks();

        // 加载前端资源
        add_action('wp_enqueue_scripts', [$this, 'enqueue_assets']);
    }

    private function setup_hooks() {
        // 支付成功
        add_action('payment_order_success', [$this, 'on_payment_success'], 10, 1);

        // 订单创建前
        add_filter('pre_order_create_data', [$this, 'modify_order_data'], 10, 1);

        // 用户中心扩展
        add_filter('user_ctnter_main_tabs_array', [$this, 'add_user_tab'], 10, 1);
    }

    public function on_payment_success($order) {
        // TODO: 支付成功逻辑
        error_log('支付成功: ' . $order->order_num);
    }

    public function modify_order_data($order_data) {
        // TODO: 修改订单数据
        return $order_data;
    }

    public function add_user_tab($tabs) {
        // TODO: 添加用户中心Tab
        return $tabs;
    }

    public function enqueue_assets() {
        wp_register_style(
            'my-zibll-style',
            MY_ZIBLL_URL . 'assets/css/style.css',
            [],
            MY_ZIBLL_VERSION
        );

        wp_register_script(
            'my-zibll-script',
            MY_ZIBLL_URL . 'assets/js/script.js',
            ['jquery'],
            MY_ZIBLL_VERSION,
            true
        );
    }
}

new My_Zibll_Plugin();

十、常用开发场景示例

场景1:支付成功后自动发放VIP

add_action('payment_order_success', 'auto_grant_vip_on_payment', 10, 1);
function auto_grant_vip_on_payment($order) {
    // 只处理VIP订单
    if ($order->order_type != 3) return;

    $user_id = $order->user_id;
    $days = 30; // 默认30天

    // 根据订单金额判断VIP时长
    if ($order->pay_price >= 298) {
        $days = 365; // 年费
    } elseif ($order->pay_price >= 98) {
        $days = 90;  // 季度
    }

    // 调用子比VIP函数(假设存在)
    if (function_exists('zibpay_set_user_vip')) {
        zibpay_set_user_vip($user_id, $days);
    }

    // 发送站内消息通知
    if (class_exists('ZibMsg')) {
        ZibMsg::add([
            'send_user'    => 'system',
            'receive_user' => [$user_id],
            'type'         => 'vip_notice',
            'title'        => 'VIP开通成功',
            'content'      => "恭喜您成功开通VIP会员,有效期{$days}天!"
        ]);
    }
}

场景2:论坛帖子发布前敏感词过滤

add_action('zib_pre_insert_post', 'filter_sensitive_words', 10, 1);
function filter_sensitive_words($post_args) {
    // 敏感词库
    $bad_words = array(
        '违禁词1', '违禁词2', '违禁词3'
    );

    $content = $post_args['post_content'] ?? '';
    $title = $post_args['post_title'] ?? '';

    foreach ($bad_words as $word) {
        if (strpos($content, $word) !== false || strpos($title, $word) !== false) {
            wp_send_json_error([
                'msg' => '内容包含敏感词汇,请修改后提交'
            ]);
        }
    }
}

场景3:在用户中心添加自定义页面

add_filter('user_ctnter_main_tabs_array', 'add_my_custom_tab');
function add_my_custom_tab($tabs) {
    $tabs['my_courses'] = [
        'title'    => '我的课程',
        'icon'     => 'fa fa-graduation-cap',
        'callback' => 'render_my_courses_page'
    ];
    return $tabs;
}

function render_my_courses_page() {
    $user_id = get_current_user_id();
    ?>
    <div class="box-body">
        <h3>我的课程</h3>
        <?php
        // 查询用户已购买的课程订单
        $orders = ZibPay::get_orders([
            'user_id'     => $user_id,
            'order_type'  => 5, // 商品类型
            'status'      => 1  // 已支付
        ]);

        if (!empty($orders)) {
            echo '<ul class="course-list">';
            foreach ($orders as $order) {
                $product = get_post($order->post_id);
                echo '<li>' . get_the_title($product) . '</li>';
            }
            echo '</ul>';
        } else {
            echo '<p>暂无已购买的课程</p>';
        }
        ?>
    </div>
    <?php
}

场景4:自定义字段存储到订单Meta

add_action('payment_order_success', 'save_custom_order_meta', 10, 1);
function save_custom_order_meta($order) {
    // 保存自定义数据到订单元数据表
    ZibPay::add_order_meta($order->id, 'source', 'my_plugin');
    ZibPay::add_order_meta($order->id, 'plugin_version', '1.0.0');
    ZibPay::add_order_meta($order->id, 'extra_data', json_encode([
        'ip'        => $_SERVER['REMOTE_ADDR'],
        'user_agent'=> $_SERVER['HTTP_USER_AGENT'],
        'timestamp' => time()
    ]));
}

场景5:扩展BBS论坛功能

// 添加版块自定义字段显示
add_filter('bbs_plate_tab_content', 'add_custom_plate_info', 10, 2);
function add_custom_plate_info($content, $index) {
    if ($index === 1 && is_plate()) {
        $plate_id = zib_bbs_get_the_plate_id();
        $custom_info = get_post_meta($plate_id, 'custom_info', true);

        if ($custom_info) {
            $content .= '<div class="custom-info">' . $custom_info . '</div>';
        }
    }
    return $content;
}

// 帖子收藏时发送通知
add_action('bbs_favorite_posts', 'notify_on_favorite', 10, 3);
function notify_on_favorite($post_id, $user_id, $type) {
    $post = get_post($post_id);
    $author_id = $post->post_author;

    if ($author_id != $user_id && class_exists('ZibMsg')) {
        $user = get_user_by('id', $user_id);
        ZibMsg::add([
            'send_user'    => (string)$user_id,
            'receive_user' => [(string)$author_id],
            'type'         => 'favorite',
            'title'        => '新的收藏通知',
            'content'      => "{$user->display_name} 收藏了您的帖子《{$post->post_title}》"
        ]);
    }
}

十一、数据库操作完整示例

使用zib_db构建器进行CRUD操作

<?php
// ============================================
// 示例1:基本查询
// ============================================
$db = new zib_db();

// 查询单条记录
$user = $db->name('users')
    ->where(['ID' => 1])
    ->find()
    ->toArray();

// 查询多条记录
$posts = $db->name('posts')
    ->where(['post_status' => 'publish'])
    ->whereIn('post_type', ['post', 'forum_post'])
    ->order(['post_date' => 'DESC'])
    ->limit(10)
    ->select()
    ->toArray();

// ============================================
// 示例2:复杂条件查询
// ============================================

// 查询最近30天的支付订单
$recent_orders = (new zib_db())
    ->name('zibpay_order')
    ->where(['status' => '1'])  // 已支付
    ->whereIn('order_type', ['1', '5'])  // 文章付费和商品
    ->whereBetween('pay_time', [
        date('Y-m-d 00:00:00', strtotime('-30 days')),
        date('Y-m-d 23:59:59')
    ])
    ->orderBy(['pay_time' => 'DESC'])
    ->limit(20)
    ->select()
    ->toArray();

// 统计总销售额
$total_sales = (new zib_db())
    ->name('zibpay_order')
    ->where(['status' => '1'])
    ->whereTime('pay_time', 'month')  // 本月
    ->sum('pay_price');

// ============================================
// 示例3:OR条件查询
// ============================================

// 查询多种状态的订单
$orders = (new zib_db())
    ->name('zibpay_order')
    ->where(['user_id' => $current_user_id])
    ->whereOr([
        ['status', '=', '0'],  // 待支付
        ['status', '=', '1'],  // 已支付
    ])
    ->order(['create_time' => 'DESC'])
    ->select()
    ->toArray();

// ============================================
// 示例4:LIKE模糊查询
// ============================================

// 搜索包含关键词的帖子
$results = (new zib_db())
    ->name('posts')
    ->whereLike('post_title|post_content', '关键词')
    ->where(['post_type' => 'forum_post'])
    ->limit(20)
    ->select()
    ->toArray();

// ============================================
// 示例5:JOIN关联查询
// ============================================

// 查询订单及其支付记录
$data = (new zib_db())
    ->name('zibpay_order', 'o')
    ->join(['zibpay_payment', 'p'], 'o.payment_id = p.id', 'LEFT')
    ->where(['o.status' => '1', 'o.user_id' => $user_id])
    ->field('o.*, p.pay_num as payment_num, p.method as pay_method')
    ->order(['o.pay_time' => 'DESC'])
    ->limit(10)
    ->select()
    ->toArray();

// ============================================
// 示例6:Meta Query(复杂关联)
// ============================================

// 查询价格小于100且状态为active的商品
$products = (new zib_db())
    ->name('posts', 'p')
    ->alias('p')
    ->metaQuery(
        [
            [
                'key'     => 'price',
                'value'   => 100,
                'compare' => '<=',
                'order'   => 'ASC'
            ],
            [
                'key'     => 'status',
                'value'   => 'active'
            ],
            'relation' => 'AND'
        ],
        ['ID', 'post_id'],
        'postmeta'
    )
    ->where(['p.post_type' => 'shop_product', 'p.post_status' => 'publish'])
    ->limit(10)
    ->select()
    ->toArrayMap(function($item){
        // 格式化输出
        $item['price_formatted'] = '¥' . number_format($item['price'], 2);
        return $item;
    });

// ============================================
// 示例7:INSERT插入数据
// ============================================

$insert_id = (new zib_db())
    ->name('custom_logs')
    ->insertGetId([
        'user_id'     => get_current_user_id(),
        'action'      => 'purchase',
        'description' => '购买了商品',
        'ip_address'  => $_SERVER['REMOTE_ADDR'],
        'created_at'  => current_time('mysql'),
    ]);

// ============================================
// 示例8:UPDATE更新数据
// ============================================

$rows = (new zib_db())
    ->name('custom_logs')
    ->where(['id' => $log_id])
    ->update([
        'status'     => 'completed',
        'updated_at' => current_time('mysql'),
    ]);

// ============================================
// 示例9:DELETE删除数据
// ============================================

$rows = (new zib_db())
    ->name('custom_logs')
    ->where([
        'user_id' => $user_id,
        'status'  => 'expired'
    ])
    ->whereTime('created_at', '<', '2026-01-01')
    ->delete();

// ============================================
// 示例10:聚合统计
// ============================================

$db = new zib_db();

// 总数
$total = $db->name('zibpay_order')
    ->where(['status' => '1'])
    ->count();

// 最大金额
$max_price = $db->name('zibpay_order')
    ->where(['status' => '1'])
    ->max('pay_price');

// 平均金额
$avg_price = $db->name('zibpay_order')
    ->where(['status' => '1'])
    ->avg('pay_price');

// 分组统计(按支付方式)
// 注意:需要手动写SQL或使用原生查询
global $wpdb;
$stats = $wpdb->get_results("
    SELECT pay_type, COUNT(*) as count, SUM(pay_price) as total
    FROM {$wpdb->prefix}zibpay_order
    WHERE status = '1'
    GROUP BY pay_type
");

十二、快速参考清单

最常用的10个Action钩子

  1. payment_order_success – 支付成功
  2. zib_pre_insert_post – 内容发布前
  3. order_created – 订单创建
  4. user_checkined – 用户签到
  5. zib_posts_content_after – 文章内容后
  6. bbs_favorite_posts – 收藏帖子
  7. follow-user – 关注用户
  8. posts_views_record – 浏览量记录
  9. zib_frontend_set_save – 前台设置保存
  10. wp_login – 用户登录

最常用的10个Filter钩子

  1. pre_order_create_data – 订单数据
  2. zibpay_payment_methods – 支付方式
  3. user_ctnter_main_tabs_array – 用户中心Tab
  4. search_types – 搜索类型
  5. author_main_tabs_array – 作者页Tab
  6. zib_get_excerpt – 文章摘要
  7. zib_theme_mode – 主题模式
  8. is_close_signup – 关闭注册
  9. tinymce_upload_img – 上传图片
  10. user_show_name – 用户显示名

必须掌握的5个核心类

  1. ZibPay – 支付订单管理
  2. zib_db – 数据库操作
  3. ZibMsg – 消息系统
  4. zib_bbs – 论坛系统
  5. zib_shop – 商城系统

必须知道的5张数据表

  1. wp_zibpay_order – 订单表
  2. wp_zibpay_ordermeta – 订单元数据
  3. wp_zibpay_payment – 支付记录
  4. wp_zib_message – 站内消息
  5. wp_zibpay_card_password – 卡密表

常用的4种自定义文章类型

  1. plate – 论坛版块
  2. forum_post – 论坛帖子
  3. shop_product – 商城商品
  4. post + topics – 文章+专题

本文档基于 子比主题 V7.0+ 版本整理

使用建议

  1. 优先使用 func.php 或独立插件方式进行开发
  2. 充分利用 Action/Filter 钩󠄹󠅀󠄪󠄢󠄡󠄦󠄞󠄧󠄣󠄞󠄢󠄡󠄧󠄞󠄨󠄣󠅬󠄼󠄿󠄳󠄱󠅄󠄹󠄿󠄾󠄪󠄳󠅟󠅜󠅥󠅝󠅒󠅥󠅣󠄜󠄐󠄿󠅘󠅙󠅟󠄜󠄐󠅅󠅃󠅬󠅅󠅃󠄵󠅂󠄪󠇖󠆨󠆨󠇕󠆞󠆒󠅬󠅄󠄹󠄽󠄵󠄪󠄢󠄠󠄢󠄦󠄝󠄠󠄤󠄝󠄣󠄠󠄐󠄡󠄥󠄪󠄤󠄨󠄪󠄠󠄩󠅬󠇕󠆁󠅶󠇗󠆚󠆍󠇔󠆪󠆁󠄐󠄝󠄐󠇔󠆨󠅽󠇖󠆈󠅾󠇖󠅹󠅰󠇔󠆫󠆕󠇕󠆁󠅶󠄐󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄐󠇗󠅹󠅸󠇖󠆍󠅳󠇖󠅹󠅰󠇖󠆌󠅹󠅬󠅅󠅂󠄼󠄪󠅘󠅤󠅤󠅠󠅣󠄪󠄟󠄟󠅔󠅧󠅟󠅩󠅥󠅞󠄞󠅓󠅟󠅝󠄟󠄢󠄥󠄥子系统,避免直接修改源码
  3. 使用 zib_db 类进行数据库操作,确保安全性
  4. 关注 payment_order_success 钩子实现业务逻辑
  5. 使用 _pz() 函数读取主题配置

© 版权声明
THE END
喜欢就支持一下吧
点赞0赞赏 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容