按子比主题源码说明用户资料字段、后台 profile 表单、zib_other_data 聚合、前台读取与保存边界。
按子比主题源码说明用户资料字段、后台 profile 表单、zib_other_data 聚合、前台读取与保存边界。 #文件位置 用户资料后台字段在: txt复制inc/options/profile-options.php 前台用户资料保存逻辑主要在: txt复制action/user.php 主题设置中的用户相关开关在: txt复制inc/options/admin-options.php 因此用户 Meta 要分三层看: 层级 文件 职责 后台 profile 字段 inc/options/profile-options.php 在 WordPress 用户编辑页渲染字段 前台用户操作 action/user.php 保存头像、封面、资料、绑定等用户提交 全站用户开关 inc/options/admin-options.php 控制注册登录、绑定、认证、积分、会员等功能 #保存位置 子比主题把一部分用户 meta 聚合到 zib_other_data。字段清单来自: php复制zib_get_option_meta_keys('user_meta') 典型字段包括: txt复制qq weixin weibo github url_name address privacy message_shield favorite_forum_posts follow_plate rewards_title cover_image cover_image_id custom_avatar custom_avatar_id rewards_wechat_image_id rewards_