Compare commits

...

2 Commits
v0.9.2 ... main

Author SHA1 Message Date
wixy 16e5c2c5ff modify version 2022-04-28 08:40:37 +08:00
wixy a518a83e7b 0.9.3版本
支持自定义登录按钮调用方法
2022-04-27 23:27:53 +08:00
2 changed files with 12 additions and 2 deletions

View File

@ -3,12 +3,12 @@
Plugin Name: QuickAuthLogin
Plugin URI: https://gitee.com/wixy/QuickAuthLogin-WP
Description: QuickAuth微信扫码登陆插件
Version: 0.9.2
Version: 0.9.3
Author: wixy
Author URI: https://blog.wixy.cn/
*/
const PLUGIN_VERSION = '0.9.2';
const PLUGIN_VERSION = '0.9.3';
//自定义登录按钮
function custom_login_button() {
@ -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 () {

View File

@ -7,6 +7,15 @@
### 更新记录
#### 2022/04/27 v0.9.3
新增全局注入登录框调用方法openLogin()可自定义登录按钮调出微信扫码登录界面只需要在按钮添加onclick事件调用openLogin()方法就可以了
例如
```
<button onclick="openLogin();">微信登陆</button>
```
#### 2022/03/31 v0.9.2
1. 支持QuickAuth平台测试功能可测试插件是否安装成功