PluginProbe
New User Approve / trunk
New User Approve vtrunk
3.2.9 3.2.8 trunk 1.0 1.1 1.1.1 1.1.2 1.1.3 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.4 1.4.1 1.4.2 1.5 1.5.1 All 86 releases
new-user-approve / new-user-approve.php

new-user-approve.php in New User Approve trunk, at new-user-approve.php

83 lines 2.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: New User Approve
4 * Plugin URI: http://newuserapprove.com/
5 * Description: Allow administrators to approve users once they register. Only approved users will be allowed to access the site. For support, please go to the <a href="http://wordpress.org/support/plugin/new-user-approve">support forums</a> on wordpress.org.
6 * Author: New User Approve
7 * Version: 3.2.9
8 * Tested up to: 7.0.4
9 * Author URI: https://newuserapprove.com/
10 * Text Domain: new-user-approve
11 *
12 * @package New_User_Approve
13 */
14
15 if ( ! defined( 'ABSPATH' ) ) {
16 exit();
17 }
18
19 if ( ! defined( 'NUA_VERSION' ) ) {
20 define( 'NUA_VERSION', '3.2.9' );
21 }
22
23 if ( ! defined( 'NUA_FILE' ) ) {
24 define( 'NUA_FILE', __FILE__ );
25 }
26
27 /**
28 * Initialize Freemius SDK for the plugin.
29 *
30 * @return Freemius|null The Freemius instance or null if not initialized.
31 */
32 function nua_init_fs() {
33 global $nua_fs;
34
35 if ( ! isset( $nua_fs ) && file_exists( __DIR__ . '/freemius/start.php' ) ) {
36 // Include Freemius SDK.
37 require_once __DIR__ . '/freemius/start.php';
38
39 $nua_fs = fs_dynamic_init(
40 array(
41 'id' => '5930',
42 'slug' => 'new-user-approve',
43 'type' => 'plugin',
44 'public_key' => 'pk_ee61e9ff1f383893927fd96595470',
45 'is_premium' => false,
46 'premium_suffix' => 'Premium',
47 'has_addons' => false,
48 'has_paid_plans' => false,
49 'has_premium_version' => true,
50 'has_affiliation' => 'selected',
51 'menu' => array(
52 'slug' => 'new-user-approve-admin',
53 'contact' => false,
54 'support' => false,
55 'account' => false,
56 'pricing' => false,
57 ),
58 'is_live' => true,
59 )
60 );
61
62 // Signal that SDK was initiated.
63 do_action( 'nua_fs_loaded' );
64 }
65
66 return $nua_fs;
67 }
68
69 /**
70 * Initialize and return the main New User Approve plugin instance.
71 *
72 * @return PW_New_User_Approve The main plugin instance.
73 */
74 function pw_new_user_approve() {
75 // Init Freemius.
76 nua_init_fs();
77
78 // requiring the New User Approve Main file.
79 require_once __DIR__ . '/class-pw-new-user-approve.php';
80 return PW_New_User_Approve::instance();
81 }
82 pw_new_user_approve();
83