-
Notifications
You must be signed in to change notification settings - Fork 0
/
svg-captcha.php
42 lines (33 loc) · 1.05 KB
/
svg-captcha.php
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: SVG Captcha
* Plugin URI: https://code.recuweb.com/get/svg-captcha/
* Version: 1.0.11
* Description: Validate your forms with a self hosted SVG Captcha.
* Author: rafasashi
* Author URI: https://code.recuweb.com
* Text Domain: svg-captcha
* Domain Path: /lang/
* Requires at least: 4.0
* Requires PHP: 6.0
* License: GPLv3
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
* Requires WP: 6.1.1
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
require_once 'includes/class-svg-captcha.php';
require_once 'includes/class-svg-captcha-settings.php';
require_once 'includes/lib/class-svg-captcha-generator.php';
require_once 'includes/lib/class-svg-captcha-admin-api.php';
require_once 'includes/lib/class-svg-captcha-post-type.php';
require_once 'includes/lib/class-svg-captcha-taxonomy.php';
function svg_captcha() {
$instance = SVG_Captcha::instance( __FILE__, '1.0.0' );
if ( is_null( $instance->settings ) ) {
$instance->settings = SVG_Captcha_Settings::instance( $instance );
}
return $instance;
}
svg_captcha();