| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* @link https://wpcomplete.co |
| 5 |
* @since 1.0.0 |
| 6 |
* @package WPComplete |
| 7 |
* |
| 8 |
* @wordpress-plugin |
| 9 |
* Plugin Name: WPComplete (FREE) |
| 10 |
* Description: A WordPress plugin that helps your students keep track of their progress through your course or membership site. |
| 11 |
* Version: 2.9.5 |
| 12 |
* Author: iThemes |
| 13 |
* Author URI: https://ithemes.com/ |
| 14 |
* License: GPL-2.0+ |
| 15 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| 16 |
* Text Domain: wpcomplete |
| 17 |
* Domain Path: /languages |
| 18 |
* iThemes Package: wpcomplete |
| 19 |
*/ |
| 20 |
|
| 21 |
// If this file is called directly, abort. |
| 22 |
if ( ! defined( 'WPINC' ) ) { |
| 23 |
die; |
| 24 |
} |
| 25 |
|
| 26 |
// Fix for 5.3. This variable wasn't added until 5.4. |
| 27 |
if ( ! defined( 'JSON_UNESCAPED_UNICODE' ) ) { |
| 28 |
define( 'JSON_UNESCAPED_UNICODE', 256 ); |
| 29 |
} |
| 30 |
|
| 31 |
// Define some variables we will use throughout the plugin: |
| 32 |
define( 'WPCOMPLETE_STORE_URL', 'https://wpcomplete.co' ); |
| 33 |
define( 'WPCOMPLETE_PRODUCT_NAME', 'WPComplete' ); |
| 34 |
define( 'WPCOMPLETE_PREFIX', 'wpcomplete' ); |
| 35 |
define( 'WPCOMPLETE_VERSION', '2.9.5' ); |
| 36 |
define( 'WPCOMPLETE_IS_ACTIVATED', false ); |
| 37 |
|
| 38 |
function wpcomplete_is_production() { |
| 39 |
return true; |
| 40 |
} |
| 41 |
|
| 42 |
/** |
| 43 |
* The code that runs during plugin activation. |
| 44 |
* This action is documented in includes/class-wpcomplete-activator.php |
| 45 |
*/ |
| 46 |
function activate_wpcomplete() { |
| 47 |
require_once plugin_dir_path( __FILE__ ) . 'includes/class-wpcomplete-activator.php'; |
| 48 |
WPComplete_Activator::activate(); |
| 49 |
} |
| 50 |
|
| 51 |
/** |
| 52 |
* The code that runs during plugin deactivation. |
| 53 |
* This action is documented in includes/class-wpcomplete-deactivator.php |
| 54 |
*/ |
| 55 |
function deactivate_wpcomplete() { |
| 56 |
require_once plugin_dir_path( __FILE__ ) . 'includes/class-wpcomplete-deactivator.php'; |
| 57 |
WPComplete_Deactivator::deactivate(); |
| 58 |
} |
| 59 |
|
| 60 |
register_activation_hook( __FILE__, 'activate_wpcomplete' ); |
| 61 |
register_deactivation_hook( __FILE__, 'deactivate_wpcomplete' ); |
| 62 |
|
| 63 |
/** |
| 64 |
* The core plugin class that is used to define internationalization, |
| 65 |
* admin-specific hooks, and public-facing site hooks. |
| 66 |
*/ |
| 67 |
require plugin_dir_path( __FILE__ ) . 'includes/class-wpcomplete.php'; |
| 68 |
|
| 69 |
/** |
| 70 |
* Begins execution of the plugin. |
| 71 |
* |
| 72 |
* Since everything within the plugin is registered via hooks, |
| 73 |
* then kicking off the plugin from this point in the file does |
| 74 |
* not affect the page life cycle. |
| 75 |
* |
| 76 |
* @since 1.0.0 |
| 77 |
*/ |
| 78 |
function run_wpcomplete() { |
| 79 |
|
| 80 |
$plugin = new WPComplete(); |
| 81 |
$plugin->run(); |
| 82 |
|
| 83 |
} |
| 84 |
run_wpcomplete(); |
| 85 |
|