-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathadcaptcha.php
More file actions
42 lines (36 loc) · 1.32 KB
/
adcaptcha.php
File metadata and controls
42 lines (36 loc) · 1.32 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
35
36
37
38
39
40
41
42
<?php
/**
* Plugin Name: adCAPTCHA for WordPress
* Description: Secure your site. Elevate your brand. Boost Ad Revenue.
* Version: 1.7.0
* Requires at least: 6.4.2
* Requires PHP: 7.4
* Author: adCAPTCHA
* Author URI: https://adcaptcha.com
* Text Domain: adcaptcha
* Domain Path: /languages
* License: GPLv2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
*
* @package adCAPTCHA
* @copyright 2024 adCAPTCHA. All rights reserved.
*/
if ( ! defined( 'ABSPATH' ) ) exit;
require_once plugin_dir_path(__FILE__) . 'vendor/autoload.php';
use AdCaptcha\Instantiate;
const PLUGIN_VERSION_ADCAPTCHA = '1.7.0';
define('ADCAPTCHA_ERROR_MESSAGE', __( 'Please complete the I am human box.', 'adcaptcha' ));
if ( ! function_exists( 'adcaptcha_uninstall' ) ) {
// Deletes data saved in the wp db on plugin uninstall
function adcaptcha_uninstall() {
delete_option( 'adcaptcha_api_key' );
delete_option( 'adcaptcha_placement_id' );
delete_option( 'adcaptcha_render_captcha' );
delete_option( 'adcaptcha_selected_plugins' );
delete_option( 'experimental_disable_wc_checkout_endpoint' );
delete_option( 'adcaptcha_wc_checkout_optional_trigger' );
}
}
register_uninstall_hook( __FILE__, 'adcaptcha_uninstall' );
$instantiate = new Instantiate();
$instantiate->setup();