PluginProbe
WPComplete / 2.9.5.1
WPComplete v2.9.5.1
2.9.5.7 2.9.5.6 trunk 1.0 1.1 1.2 1.4 1.4.6 2.3 2.9.1 2.9.2 2.9.5 2.9.5.1 2.9.5.3 2.9.5.4 2.9.5.5
wpcomplete / wpcomplete.php

wpcomplete.php in WPComplete 2.9.5.1, at wpcomplete.php

85 lines 2.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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.1
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.1' );
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