1
0
Fork 0
mirror of https://github.com/yunluo/gdk.git synced 2024-05-04 23:43:23 +02:00

删除无用文件

This commit is contained in:
云落 2020-04-06 09:06:16 +08:00
parent 28296e632f
commit 7255d0a179
2 changed files with 2 additions and 24 deletions

View file

@ -1,21 +0,0 @@
<?php
//激活插件后,主要是创建页面
function weauth_plugin_activate()
{
$weixin_login_id = get_option("gdk_option['weixin_login_id']");
if (!$weixin_login_id) {
$post1 = array(
'post_title' => "微信登录", //这里是自动生成页面的页面标题
'post_content' => "[weauth]", //这里是页面的内容
'post_status' => "publish",
'post_type' => 'page',
'post_name' => 'weixin-login',
);
$page_id = wp_insert_post($post1);
update_post_meta($page_id, "_wp_page_template", ""); //这里是生成页面的模板类型
update_option("gdk_option['weixin_login_id']", $page_id);
}
}

View file

@ -3,7 +3,7 @@
Plugin Name: GitCafe Development Kit 极客公园开发套件
Plugin URI: https://gitcafe.net/
Description: 为WordPress主题开发提供底层支持
Version: 0.0.1
Version: 0.0.3
Author: 云落
Author URI: https://gitcafe.net/
Compatible:5.3.2
@ -39,5 +39,4 @@ include 'class/class_load.php'; //加载各种类
include 'functions/func_load.php'; //加载函数
include 'assets/assets_load.php'; //加载静态资源
//激活插件之后创建必要页面
//register_activation_hook(__FILE__, 'gdk_plugin_activate');