-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwp-mt-recaptcha.php
More file actions
30 lines (25 loc) · 956 Bytes
/
wp-mt-recaptcha.php
File metadata and controls
30 lines (25 loc) · 956 Bytes
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
<?php
/**
* Plugin Name: WP MT Recaptcha V2
* Description: Adds multiple reCAPTCHA V2 checkbox widgets (myaccount login/register, reviews, checkout) and validates server-side. Coexists with external reCAPTCHA V3 by rendering V2 explicitly and loading grecaptcha only once.
* Version: 1.0.0
* Author:
* Text Domain: wmr
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
define( 'WMR_DIR', plugin_dir_path( __FILE__ ) );
define( 'WMR_URL', plugin_dir_url( __FILE__ ) );
require_once WMR_DIR . 'includes/class-wmr-settings.php';
require_once WMR_DIR . 'includes/class-wmr-loader.php';
require_once WMR_DIR . 'includes/class-wmr-frontend.php';
require_once WMR_DIR . 'includes/class-wmr-validators.php';
add_action( 'plugins_loaded', 'wmrInit' );
function wmrInit()
{
$settings = new WMR_Settings();
$loader = new WMR_Loader( $settings );
$frontend = new WMR_Frontend( $settings );
$validator = new WMR_Validators( $settings );
}