<?php
/**
 * Plugin Name: IPUA (IP属地和User-Agent插件)
 * Description: 使用腾讯位置服务(https://lbs.qq.com/location/)为你的 WordPress 增加 IP 属地及 User-Agent 展示
 * Author: 耗子开源
 * Author URI: https://hzbk.net/
 * Version: 2.0.1
 * License: GPLv3 or later
 * Text Domain: wp-ipua
 * Domain Path: /languages
 * Network: True
 * Requires at least: 4.9
 * Tested up to: 6.3
 * Requires PHP: 5.6.0
 * License URI: http://www.gnu.org/licenses/gpl-3.0.html
 */

namespace HaoZiTeam\IPUA;

const VERSION     = '2.0.1';
const PLUGIN_FILE = __FILE__;
const PLUGIN_DIR  = __DIR__;

require_once( plugin_dir_path( __FILE__ ) . 'vendor/autoload.php' );

// 注册插件激活钩子
register_activation_hook( PLUGIN_FILE, [ Plugin::class, 'activate' ] );
// 注册插件删除钩子
register_uninstall_hook( PLUGIN_FILE, [ Plugin::class, 'uninstall' ] );

new Plugin();
