-
Notifications
You must be signed in to change notification settings - Fork 3
/
bp-security-check.php
42 lines (34 loc) · 1.05 KB
/
bp-security-check.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: BuddyPress Security Check
* Plugin URI: https://bungeshea.com/plugins/bp-security-check/
* Description: Help combat spam registrations by forcing the user to answer a simple math sum while registering for your BuddyPress-powered site
* Author: Shea Bunge
* Author URI: https://bungeshea.com
* Version: 3.2.2
* License: MIT
* License URI: https://opensource.org/licenses/MIT
* Text Domain: bp-security-check
* Domain Path: /languages/
*/
/**
* Adds a maths sum to the BuddyPress registration page that the user
* must answer correctly before registering
* @version 3.2.2
* @license https://opensource.org/licenses/MIT MIT
* @author Shea Bunge (https://bungeshea.com)
*/
namespace Shea\BP_Security_Check;
require __DIR__ . '/vendor/autoload.php';
/**
* Retrieve the instance of the plugin class
* @return Plugin
*/
function plugin() {
static $plugin;
if ( is_null( $plugin ) ) {
$plugin = new Plugin( '3.2.2', __FILE__ );
}
return $plugin;
}
add_action( 'plugins_loaded', array( plugin(), 'run' ) );