PluginProbe
WP Approve User / 13
WP Approve User v13
13 12 trunk 1.0 1.1.0 1.1.1 10 11 2.0.0 2.1.0 2.1.1 2.2.0 2.2.1 2.2.2 2.2.3 2.4.0 3 4 5 6 7 8 9
wp-approve-user / wp-approve-user.php

wp-approve-user.php in WP Approve User 13, at wp-approve-user.php

52 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: WP Approve User
4 * Plugin URI: http://en.wp.obenland.it/wp-approve-user/#utm_source=wordpress&utm_medium=plugin&utm_campaign=wp-approve-user
5 * Description: Adds action links to user table to approve or unapprove user registrations.
6 * Version: 13
7 * Author: Konstantin Obenland
8 * Author URI: http://en.wp.obenland.it/#utm_source=wordpress&utm_medium=plugin&utm_campaign=wp-approve-user
9 * Text Domain: wp-approve-user
10 * Domain Path: /lang
11 * Requires at least: 4.7
12 * Requires PHP: 7.4
13 * License: GPLv2
14 *
15 * @package WP Approve User
16 */
17
18 if ( ! get_option( 'users_can_register' ) ) {
19 require_once __DIR__ . '/noop.php';
20 return;
21 }
22
23 // Define the current version for upgrades.
24 $wpau_db_version = 13;
25
26 if ( ! class_exists( 'Obenland_Wp_Plugins_V5' ) ) {
27 require_once __DIR__ . '/class-obenland-wp-plugins-v5.php';
28 }
29
30 require_once __DIR__ . '/class-obenland-wp-approve-user.php';
31 require_once __DIR__ . '/class-wpau-dashboard-widget.php';
32 require_once __DIR__ . '/class-wpau-settings.php';
33 require_once __DIR__ . '/cron-events.php';
34 require_once __DIR__ . '/upgrade.php';
35 require_once __DIR__ . '/abilities.php';
36
37 /**
38 * Instantiates Obenland_Wp_Approve_User.
39 */
40 function wp_approve_user_instantiate() {
41 Obenland_Wp_Approve_User::get_instance();
42 }
43 add_action( 'plugins_loaded', 'wp_approve_user_instantiate', 0 );
44
45 /**
46 * Actions to take on plugin activation.
47 */
48 function wp_approve_user_activate() {
49 wpau_allowlist_users();
50 }
51 register_activation_hook( __FILE__, 'wp_approve_user_activate' );
52