WP Weixin

描述

WP Weixin提供WordPress和微信之间的集成。 在微信浏览器中自动注册或验证用户,使用微信创建账号或通过微信扫描二维码在电脑上验证,在微信时刻分享帖子和对话,或者扩展插件以获得更多功能!

重要笔记

概观

此插件为WordPress添加了以下主要功能:

  • WP Weixin设置页面:使用英文或中文开箱即用官方帐户(或多站点中的任意数量)配置插件,并附有每个选项的说明。
  • 微信认证:在微信浏览器中自动创建和验证WordPress中的用户,或者允许用户在使用经典浏览器时使用微信扫描二维码(社交登录)。
  • 微信帐号绑定:允许用户使用其微信帐号绑定/取消绑定现有的WordPress帐户。 与WooCommerce和Ultimate Member帐户页面集成,可以轻松地与任何会员/帐户/个人资料插件集成。
  • 微信分享:以精彩的方式分享关于时刻或发送到聊天的帖子和页面。 为开发人员成功和失败触发JavaScript事件。
  • 强制微信移动,防止用户浏览微信浏览器以外的网站。 如果使用经典浏览器访问,该页面将显示微信公众号二维码,关注后才可以访问。
  • 强制关注微信公众号:收获微信关注者,强制用户在访问内容之前关注微信公众号。
  • WordPress用户屏幕覆盖:显示微信名称和微信头像(如果存在),而不是用户屏幕中的默认值。
  • WP Weixin二维码生成器:创建自定义代码。
  • 菜单集成:允许在启用微信响应程序时在WordPress中设置微信公众号帐户菜单。
  • 欢迎留言:当用户关注微信公众号帐号时,在微信中发送欢迎讯息; 允许在启用微信响应程序时使用WordPress执行此操作。
  • 开发人员 – 微信回复:,供开发人员接收和回复微信API发出的呼叫。
  • Developers – WeChat JS_SDK: the wx JavaScript global variable is pre-configured with a signed package to leverage the JavaScript SDK of WeChat in WordPress themes more easily.

兼容WooCommerce, WooCommerce Multilingual, WPML, Ultimate Member, WordPress多站点, 和许多缓存插件

相关扩展插件

鼓励开发人员以WP Weixin为核心构建与微信集成的插件和主题,利用其公开的functions, 操作过滤器,或直接 使用提供的SDK

如果您希望将此插件添加到此列表中,请与作者联系

高级 – 多站点

WP Weixin支持多站点安装WordPress,使用域/子域或子目录。 如果实施了适当的过滤器,它甚至可以支持多个官方帐户。 有关详细信息,请参阅对多站点的更详细说明 设置,以及文档的多站点部分

与某些插件(商业,混淆和可疑的安全标准)不同,WP Weixin不会也不会依赖于在WordPress根目录下转储的跨域脚本,而是更喜欢利用标准的WordPress功能,操作和过滤器。

排除故障,功能请求和第三方集成

与大多数微信集成插件不同,WP Weixin及其同一插件发布的配套插件是免费提供的。

WP Weixin定期更新,欢迎提交错误报告,最好是在 Github上。 每个错误报告都将及时得到解决,但在WordPress上报告的问题可能需要更长的时间才能收到回复。

WP Weixin和所有配套插件已经过最新版本的WordPress测试 – 如有问题,请确保您能够使用默认安装的WordPress,Storefront主题(如果WooCommerce处于活动状态)以及任何上述支持的情况下重现它 如果在报告错误之前使用了插件。

WP Weixin及其所有扩展的功能请求(例如“让XYZ很好”)或第三方集成请求(例如“它不能与XYZ插件一起使用”或“它不能与我的主题一起工作”) 只有在微信上收到最低人民币500元的红包(保证尽力而为,不保证结果)后,才会考虑插件。

要在微信上添加作者,请单击此处,扫描微信二维码, 并在您的联系请求中添加“WP Weixin”作为评论。

屏幕截图

  • 将WordPress与微信集成的主要设置。
  • The WeChat Responder settings (for developers) and the proxy settings.
  • 其他设置。
  • 在主设置中选中“强制微信移动”时,经典浏览器中显示的屏幕。
  • 当微信响应者处于活动状态时,可以通过过滤器自定义发送给新订阅者的欢迎消息。
  • 显示微信名称和微信头像(如果存在)的用户列表,而不是默认值。
  • 带有微信二维码认证链接的默认WordPress登录表单。
  • 微信二维码认证页面。
  • 公共微信帐号信息显示在默认的WordPress帐户页面上。
  • 将WordPress用户帐户与微信帐户绑定的页面。
  • 使用微信帐户取消绑定WordPress用户帐户的页面。
  • 默认的WooCommerce登录表单,带有微信二维码验证链接(类似于终极会员登录表单)。
  • 带有微信帐号绑定链接的默认WooCommerce帐户页面(类似于终极会员帐户页面)。
  • 默认WooCommerce帐户页面上显示的公共微信帐号信息和微信帐号解除绑定链接(类似于终极会员帐户页面)。
  • WP Weixin二维码生成器。
  • 当微信响应者处于活动状态时,设置微信官方账号菜单的界面。

安装

本节介绍如何安装插件并使其正常工作。

  1. 将插件文件上传到/wp-content/plugins/wp-weixin目录,或直接通过WordPress插件屏幕安装插件。
  2. 通过WordPress中的“插件”屏幕激活插件
  3. 编辑插件设置

评价

2020 年 2 月 21 日
After installed the plugin for one week, the functions combining weixin login, follow and unfollow, customized QR code are working fine. A little bit misunderstandings problems have been solved after contact with developer. Glad to installed it and WP weixin need to be recommended to more people. BTW, guys, you may be very interested in a foreigner who programmed applications for local Chinese users with totally understanding the local APPs rules, and even more, the China internet laws suggestions. Many thanks.
2019 年 1 月 16 日
This is the best plugin ever . I m running a social websites for Expats in China and this plugin is indisputably TOP 1 for sites needing WeChat integration .Before landing on this plugin ,I have been back and forth installing and deleting plugins claiming to do the job but none could solve my quest for a smooth and clean wechat integration.It does everything exactly as detailed and best of all the plugin is unbelievably FREE OF CHARGE On installation the support was just amazing.The author helped me getting it setup at every step .I think the plugin definitely deserves a decent pro price. Thanks again for your awesome plugin
2019 年 1 月 16 日 1 回复
This is the best plugin for integrating WordPress with weixin. The amount of work that goes into this plugin is exceptional and it's very feature-complete. Dev is also very responsive on github!
2018 年 11 月 13 日
Hello, Great thank. After test several WeChat plugin, this is really professional one with multisite support. Not only WeChat login, but also WeChat payment. Thanks again.
2018 年 10 月 29 日 1 回复
感谢WP Weixin作者Alexandre Froger!为网站提供微信集成如此方便的插件,用户在微信内打开网站任意页面,即可自动创建账户并登录。用起来非常方便。
阅读所有6条评价

贡献者及开发者

“WP Weixin” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

「WP Weixin」插件已被翻译至 1 种本地化语言。 感谢所有译者为本插件所做的贡献。

将“WP Weixin”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.3.16

  • Remove WooCommerce compatbility tag (reason: irrelevant)

1.3.15

  • Fix user avatar
  • WordPress tested up to: 6.4
  • Added WP_WEIXIN_API_DISABLED constant to prevent calling WeChat API when set to true
  • Minor cosmetic improvements – admin interface
  • Added wp_weixin_is_follower function
  • Check existence of several $_SERVER values before using them
  • Ultimate Member compatibility improvements
  • Optimise refresh user info
  • Fix: save alternate thumbnail URL for WeChat Share
  • Revamp responder: better event handling, pre-register user upon following the OA, optimization
  • Update codebase with wp_doing_ajax filter
  • Add $class parameter to wp_weixin_get_auth_link
  • Added WP_WEIXIN_ALLOW_DESKTOP constant to turn off WeChat desktop reztriction
  • Use wx.updateTimelineShareData and wx.updateAppMessageShareData instead of updateTimelineShareData and updateAppMessageShareData
  • Minor improvements, fixes, and compatibility updates

1.3.14

  • Call 'wp_login' action when automatically logging in with the WeChat browser

1.3.13

  • Make sure not to show frontend error on default login page

1.3.12

  • Support JS-SDK jweixin-1.4.0.js
  • WordPress tested up to: 5.4.1

1.3.11

  • Update interface strings – payment callback labels
  • WC tested up to: 4.0.0
  • Translation updates

1.3.10

  • WC tested up to: 3.9.2
  • Fix a critical issue when enabling proxy (special thanks to @zhoufann9188 on GitHub)
  • Enhance template selection method

1.3.9

  • WC tested up to: 3.9.1

1.3.8

  • Minor bugfix: WeChat Responder should not be responding to button click event
  • Minor bugfix: Change a call to add_action to add_filter
  • WeChat SDK: Update MASS_GET const – call https

1.3.7

  • Minor bugfix: WeChat Responder settings validation

1.3.6

  • WeChat SDK: Update error codes and descriptions
  • WC tested up to: 3.9.0

1.3.5

  • WeChat SDK: Update error codes and descriptions
  • WeChat SDK: Add Broadcast methods (mass_preview mass_to_users, mass_to_all_or_tag, mass_delete, mass_check_status)
  • WeChat SDK: Add mobile browser H5 unified order method (mobileUnifiedOrder)
  • WeChat SDK: refactor asset management methods
  • WeChat SDK: refactor WeChat response parsing
  • WeChat SDK: convert encryption calls with mcrypt to open_ssl
  • WeChat SDK: response to erquests coming from WeChat handled using Customer Service interface instead of passive response
  • WeChat SDK: removed “event” ; added “voice”, “mpnews”, “video” and “menu” message types
  • Settings: decrease coupling with companion plugins
  • Added plugin version headers for companion plugins to check compatibility
  • Added wp_weixin_ajax_safe() function to allow WP Weixin to run during specific ajax requests
  • Added filter hook wp_weixin_ecommerce_description to allow extensions to customise the WeChat Pay Settings description.
  • Added check to output logs only when WordPress debug is activated
  • Added a notice on WooCommerce account edit page: WeChat registered users have an auto-generated password and it should be changed using the “Lost your password?” link in a web browser.
  • Added a template to tell users how to change their password when their account has been created automatically after they visited the site with WeChat browser.
  • Added a metabox to override the title and description of WeChat links when sharing a post on WeChat.
  • Use user meta to save follower status and react to events using the responder instead of relying on transient and cookies.
  • Display the featured image of the post in previously visited if exists instead of default image when following with force follow
  • Attempt to solve Multisite authentication issues
  • Minor bugfixes
  • Version 1.3.3 and 1.3.4 skipped
  • 更新文档

1.3.2

  • Add server logs when user creation failed

1.3.1

1.3

  • 主要的整体代码重构
  • 文件包括优化
  • wp中进行身份验证(如果在wp_loaded中完成,则会打破多站点)
  • 从桌面,兼容的WooCommerce和Ultimate Member添加微信账号绑定; 可以使用提供的函数和操作&过滤器钩子与任何成员资格/帐户/配置文件插件集成
  • 在登录表单,兼容的WooCommerce和Ultimate Member开箱即用的经典浏览器中添加微信认证链接; 可以使用提供的函数和操作&过滤器钩子与任何成员资格/帐户/配置文件插件集成
  • 添加11个可供开发人员使用的新公开功能
  • 添加26个动作挂钩,与WP Weixin设置页面集成,与会员/帐户/配置文件插件集成,与WeChat Pay更好地集成,以及构建配套插件
  • 添加8个过滤器挂钩,以便更好地与微信支付集成,自定义设置,管理用户和超载模板
  • 添加3个与微信账号绑定相关的模板
  • 在进行身份验证时支持URL中的查询变量
  • 设置中的敏感信息仅在字段聚焦时可见
  • SDK:将扩展参数添加到退款订单 – 如果是字符串,则将值归于refund_desc
  • 改善用户界面
  • 更新文档 – 添加了“微信SDK”部分,“多站点”部分,新功能和新钩子
  • 更新翻译

特别感谢:

  • 感谢@alexlii进行广泛的测试,翻译,建议和捐赠!
  • 谢谢@lssdo的翻译
  • 感谢@kzgzs的改进建议

1.2.2

  • 修复了首次验证后错误重定向到帖子列表的问题
  • wp_loaded中进行身份验证,而不是template_redirect
  • 微信支付设置:添加PEM证书字段
  • SDK:添加公共函数cert_files_exist()
  • WeChat SDK: fix refund method
  • SDK:修复付款请求解析方法
  • 更新文档

1.2.1

  • 更好的错误日志
  • 修复持久缓存处理

1.2

  • 优化重写规则注册
  • 具有跨域身份验证的多站点支持
  • 第一次访问QR码auth时修复不必要的重定向
  • 与WPML和WooCommerce更好的兼容性
  • 与Open Social更好的兼容性

1.1.2

  • 调整挂钩优先级和条件以进行身份验证挂钩注册
  • 默认情况下,不要求对ajax调用进行移动身份验证(可以使用wp_weixin_auth_needed过滤器进行更改钩)

1.1.1

  • 如果在访问WeChat Responder端点时服务器签名无效,则会出现错误的401错误
  • 修复菜单集成 – 确保可以配置所有类型的按钮
  • 确保仅在必要时才进行身份验证挂钩注册
  • 微信SDK:修复媒体上传方法
  • 微信SDK:添加图片响应类型

1.1

  • 使用临时,安全的二维码添加浏览器的微信认证(社交登录)
  • 清理和次要重构
  • 增加了2个功能,4个过滤器,3个模板

1.0.4

  • 添加瞬态到期以避免以某种方式损坏数据库的死锁
  • 添加通过openid和unionid获取WordPress用户的可能性

1.0.3

1.0.2

  • 调整挂钩优先级
  • 添加中文翻译

1.0.1

  • 修复激活设置问题

1.0

  • 第一个版本