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平台测试功能,可测试插件是否安装成功