| 1 |
<?php |
| 2 |
/* |
| 3 |
Plugin Name: UsersWP |
| 4 |
Plugin URI: https://userswp.io/ |
| 5 |
Description: The only lightweight user profile plugin for WordPress. UsersWP features front end user profile, users directory, a registration and a login form. |
| 6 |
Version: 1.2.34 |
| 7 |
Author: AyeCode Ltd |
| 8 |
Author URI: https://userswp.io |
| 9 |
License: GPL-2.0+ |
| 10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| 11 |
Text Domain: userswp |
| 12 |
Domain Path: /languages |
| 13 |
Requires at least: 5.0 |
| 14 |
Tested up to: 6.8 |
| 15 |
*/ |
| 16 |
|
| 17 |
// If this file is called directly, abort. |
| 18 |
if ( ! defined( 'WPINC' ) ) { |
| 19 |
die; |
| 20 |
} |
| 21 |
|
| 22 |
if ( ! defined( 'USERSWP_NAME' ) ) { |
| 23 |
define( 'USERSWP_NAME', 'userswp' ); |
| 24 |
} |
| 25 |
|
| 26 |
if ( ! defined( 'USERSWP_VERSION' ) ) { |
| 27 |
define( 'USERSWP_VERSION', '1.2.34' ); |
| 28 |
} |
| 29 |
|
| 30 |
if ( ! defined( 'USERSWP_PATH' ) ) { |
| 31 |
define( 'USERSWP_PATH', plugin_dir_path( __FILE__ ) ); |
| 32 |
} |
| 33 |
|
| 34 |
if ( ! defined( 'USERSWP_PLUGIN_URL' ) ) { |
| 35 |
define( 'USERSWP_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); |
| 36 |
} |
| 37 |
|
| 38 |
if ( ! defined( 'USERSWP_PLUGIN_FILE' ) ) { |
| 39 |
define( 'USERSWP_PLUGIN_FILE', __FILE__ ); |
| 40 |
} |
| 41 |
|
| 42 |
if ( ! defined( 'USERSWP_PLUGIN_BASENAME' ) ) { |
| 43 |
define( 'USERSWP_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); |
| 44 |
} |
| 45 |
|
| 46 |
/** |
| 47 |
* The core plugin class that is used to define internationalization, |
| 48 |
* admin-specific hooks, and public-facing site hooks. |
| 49 |
*/ |
| 50 |
if ( ! class_exists( 'UsersWP' ) ) { |
| 51 |
include_once dirname( __FILE__ ) . '/includes/class-userswp.php'; |
| 52 |
} |
| 53 |
/** |
| 54 |
* Begins execution of the plugin. |
| 55 |
* |
| 56 |
* Since everything within the plugin is registered via hooks, |
| 57 |
* then kicking off the plugin from this point in the file does |
| 58 |
* not affect the page life cycle. |
| 59 |
* |
| 60 |
* @since 1.0.0 |
| 61 |
*/ |
| 62 |
function run_users_wp() { |
| 63 |
global $userswp; |
| 64 |
$userswp = new UsersWP(); |
| 65 |
} |
| 66 |
|
| 67 |
run_users_wp(); |