百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
W

wp-weixin

> 编程语言
开源

WordPress 微信集成

99 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

WordPress 微信集成

WP Weixin - WordPress WeChat integration

Table of Contents

  • WP Weixin - WordPress WeChat integration
    • Table of Contents
    • General Description
      • Companion Plugins
      • Important Notes
      • Registering a domain in the Official Account's backend
      • Overview
      • Object Cache considerations
    • Settings
      • Main Settings
      • Multisite Settings
      • WeChat Responder Settings
      • WeChat Pay Settings
      • Proxy Settings
      • Miscellaneous Settings
    • Multisite
    • WeChat SDK
    • Functions * wp_weixin_is_wechat * wp_weixin_ajax_safe * wp_weixin_get_user_by_openid * wp_weixin_get_user_by_unionid * wp_weixin_get_wechat * wp_weixin_get_options * wp_weixin_get_option * wp_weixin_wpml_switch_lang * wp_weixin_get_signed_package * wp_weixin_get_user_wechat_info * wp_weixin_get_user_wechat_openid * wp_weixin_get_auth_link * wp_weixin_get_bind_link * wp_weixin_unbind * wp_weixin_bind * wp_weixin_is_follower
    • Hooks - actions & filters
      • Actions
        • wp_weixin_extensions
        • wp_weixin_responder
        • wp_weixin_save_access_info
        • wp_weixin_before_user_profile_wechat_info
        • wp_weixin_after_user_profile_wechat_info
        • wp_weixin_before_bind_account
        • wp_weixin_after_bind_account
        • wp_weixin_before_unbind_account
        • wp_weixin_after_unbind_account
        • wp_weixin_before_tabs_settings
        • wp_weixin_before_main_tab_settings
        • wp_weixin_before_main_settings_inner
        • wp_weixin_after_main_settings_inner
        • wp_weixin_after_main_tab_settings
        • wp_weixin_before_qr_tab_settings
        • wp_weixin_after_qr_tab_settings
        • wp_weixin_after_tabs_settings
        • wp_weixin_before_settings
        • wp_weixin_before_main_settings
        • wp_weixin_after_main_settings
        • wp_weixin_before_qr_settings
        • wp_weixin_before_qr_settings_inner
        • wp_weixin_after_qr_settings_inner
        • wp_weixin_after_qr_settings
        • wp_weixin_after_settings
        • wp_weixin_endpoints
        • wp_weixin_handle_payment_notification
        • wp_weixin_handle_auto_refund
      • Filters
        • wp_weixin_browser_page_qr_src
        • wp_weixin_subscribe_src
        • wp_weixin_follower_notice_title
        • wp_weixin_follower_notice
        • wp_weixin_auth_needed
        • wp_weixin_debug
        • wp_weixin_follower_welcome_title
        • wp_weixin_follower_welcome_description
        • wp_weixin_follower_welcome_url
        • wp_weixin_follower_welcome_pic_url
        • wp_weixin_get_access_info
        • wp_weixin_jsapi_urls
        • wp_weixin_pay_callback_endpoint
        • wp_weixin_settings
        • wp_weixin_show_settings_section
        • wp_weixin_show_setting
        • wp_weixin_settings_fields
        • wp_weixin_auth_redirect
        • wp_weixin_scan_heartbeat_frequency
        • wp_weixin_qr_cleanup_frequency
        • wp_weixin_qr_lifetime
        • wp_weixin_user_wechat_info
        • wp_weixin_ms_auto_add_to_blog
        • wp_weixin_ms_auth_blog_id
        • wp_weixin_ms_pay_blog_id
        • wp_weixin_locate_template_paths
        • wp_weixin_get_user_by_openid
        • wp_weixin_pay_notify_results
        • wp_weixin_ecommerce_description
        • wp_weixin_subscribe_qr_url
        • wp_weixin_metabox_post_types
    • Templates * wp-weixin-subscribe * wp-weixin-browser-qr * wp-weixin-auth-form-link * wp-weixin-auth-page * wp-weixin-mobile-auth-check * wp-weixin-bind-form-link * wp-weixin-bind-page * wp-weixin-mobile-bind-check * wp-weixin-public-info * wp-weixin-account-form-password-notice
    • JavaScript * wpWeixinShareTimelineSuccessListener * wpWeixinShareTimelineFailureListener * wpWeixinShareAppMessageSuccessListener * wpWeixinShareAppMessageFailureListener

General Description

WP Weixin provides integration between WordPress and WeChat. Register or authenticate users automatically in WeChat browser, use WeChat to create an account or authenticate on computers by scanning a QR code with WeChat, share posts in WeChat Moments and conversations or extend the plugin for more features!

Companion Plugins

  • Woo WeChatPay: a payment gateway for WooCommerce.
  • WP Weixin Pay: an extension to enable money transfers to an Official Account.

Developers are encouraged to build plugins and themes integrated with WeChat with WP Weixin as a core, leveraging its publicly available functions, actions and filters, or directly make use of the provided SDK.

If you wish to see your plugin added to this list, please contact the author.

Important Notes

  • Requires a China Mainland WeChat Official Account (Subscription or Service - Service is required if used with companion plugins dealing with payments).
  • A domain used by WordPress must be registered in an Official Account's backend
  • The plugin itself does not require programming knowledge, and provides really useful functionalities out of the box. Where it really shines though is when used by developers to extend its functionalities (mainly through the pre-initialised JS SDK, the WeChat Responder, and various provided functions, actions and filters).

Registering a domain in the Official Account's backend

To register a domain and authorize communication between it and the WeChat APIs (frontend JS and server side), the domain must be linked with an ICP license first. Then, on https://mp.weixin.qq.com:

  • connect to the Official Account's backend
  • click the "Interface Privilege" menu item
  • in the list, search for "Web Page Authorization" and click the "Modify" link
  • add the domain in both "JS interface security domain name" and "Webpage authorization domain name" by clicking the "Set-up" link for both sections (without the protocol http or https) - making sure to include the MP_verify_[some_code].txt files to the root of the website corresponding to the domain registered as instructed, accessible publicly.

Overview

This plugin adds the following major features to WordPress:

  • WP Weixin settings page: configure the plugin with an Official Account (or as many as you want in multisite) in English or Chinese out of the box, with instructions for each option.
  • WeChat Authentication: automatically create and authenticate users in WordPress in the WeChat browser, or allow users to scan a QR code with WeChat when using classic browsers (social login).
  • WeChat Account Binding: let users bind/unbind their existing WordPress account with their WeChat account. Integrated with WooCommerce and Ultimate Member account pages, and may be integrated with any membership/account/profile plugin easily.
  • WeChat Share: Share posts and pages on Moments or Send to chat, in a pretty way. Triggers JavaScript events for developers on success and failure.
  • Force WeChat mobile: to prevent users from browsing the website outside of the WeChat browser. If accessed with a classic browser, the page displays a QR code.
  • Force following the Official Account: to harvest WeChat followers, forcing users to follow the Official Account before accessing the content.
  • WordPress Users screen override: to display WeChat names and WeChat avatars if they exist, instead of the default values in the user screen.
  • WP Weixin QR code generator: to create custom codes.
  • Menu integration: allows to set the Official Account menus in WordPress when the WeChat Responder is enabled.
  • Welcome message: sends a welcome message in WeChat when a user follows the Official Account ; allows to do so with WordPress when the WeChat Responder is enabled.
  • Developers - WeChat Responder: for developers to receive and respond to calls made by WeChat's 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.

Compatible with WooCommerce, WooCommerce Multilingual, WPML, Ultimate Member, WordPress Multisite, and many caching plugins.

Object Cache considerations

This plugi

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

PHPphpwechatwordpress-developmentwordpress-plugin

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言