From a518a83e7b3bb7eaf3450f00a5f4d741fb530c0d Mon Sep 17 00:00:00 2001 From: wixy Date: Wed, 27 Apr 2022 23:27:53 +0800 Subject: [PATCH] =?UTF-8?q?0.9.3=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 支持自定义登录按钮调用方法 --- QuickAuthLogin/qauth.php | 1 + README.md | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/QuickAuthLogin/qauth.php b/QuickAuthLogin/qauth.php index a4aab95..e60f914 100644 --- a/QuickAuthLogin/qauth.php +++ b/QuickAuthLogin/qauth.php @@ -43,6 +43,7 @@ function custom_html() { } } add_action('login_footer', 'custom_html'); +add_action('wp_footer', 'custom_html'); //回调接口定义 add_action( 'rest_api_init', function () { diff --git a/README.md b/README.md index 978d773..d9ffc9e 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,15 @@ ### 更新记录 +#### 2022/04/27 v0.9.3 + +新增全局注入登录框调用方法openLogin(),可自定义登录按钮调出微信扫码登录界面,只需要在按钮添加onclick事件调用openLogin()方法就可以了 +例如 + + ``` + + ``` + #### 2022/03/31 v0.9.2 1. 支持QuickAuth平台测试功能,可测试插件是否安装成功