-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproofage-age-verification.php
More file actions
34 lines (27 loc) · 1.02 KB
/
proofage-age-verification.php
File metadata and controls
34 lines (27 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/**
* Plugin Name: ProofAge Age Verification
* Plugin URI: https://proofage.xyz/
* Description: Adds ProofAge-powered age verification to WordPress and WooCommerce storefronts.
* Version: 0.1.0
* Requires at least: 6.4
* Requires PHP: 8.1
* Author: ProofAge
* License: GPLv2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: proofage-age-verification
*/
if (! defined('ABSPATH')) {
exit;
}
define('PROOFAGE_WP_PLUGIN_FILE', __FILE__);
define('PROOFAGE_WP_PLUGIN_DIR', plugin_dir_path(__FILE__));
define('PROOFAGE_WP_PLUGIN_URL', plugin_dir_url(__FILE__));
define('PROOFAGE_WP_PLUGIN_VERSION', '0.1.0');
require_once PROOFAGE_WP_PLUGIN_DIR . 'src/Autoloader.php';
\ProofAge\WordPress\Autoloader::register();
register_activation_hook(__FILE__, ['ProofAge\\WordPress\\Plugin', 'activate']);
register_deactivation_hook(__FILE__, ['ProofAge\\WordPress\\Plugin', 'deactivate']);
add_action('plugins_loaded', static function (): void {
(new \ProofAge\WordPress\Plugin())->boot();
});