PluginProbe
WPComplete / 1.4
WPComplete v1.4
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 1.4, at wpcomplete.php

84 lines 2.5 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. <a href="https://wpcomplete.co">Upgrade to the PRO version</a> to unlock features.
11 * Version: 1.4.4
12 * Author: Zack Gilbert and Paul Jarvis
13 * Author URI: https://wpcomplete.co
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 */
19
20 // If this file is called directly, abort.
21 if ( ! defined( 'WPINC' ) ) {
22 die;
23 }
24
25 // Define some variables we will use throughout the plugin:
26 define( 'WPCOMPLETE_STORE_URL', 'https://wpcomplete.co' );
27 define( 'WPCOMPLETE_PRODUCT_NAME', 'WPComplete' );
28 define( 'WPCOMPLETE_PREFIX', 'wpcomplete' );
29
30 /**
31 * The code that checks for plugin updates.
32 * Borrowed from: https://github.com/YahnisElsts/plugin-update-checker
33 */
34 require plugin_dir_path( __FILE__ ) . 'includes/plugin-update-checker-3.1.php';
35 $myUpdateChecker = PucFactory::buildUpdateChecker(
36 // FREE:
37 'https://wpcomplete.co/free.json',
38 __FILE__
39 );
40
41 /**
42 * The code that runs during plugin activation.
43 * This action is documented in includes/class-wpcomplete-activator.php
44 */
45 function activate_wpcomplete() {
46 require_once plugin_dir_path( __FILE__ ) . 'includes/class-wpcomplete-activator.php';
47 WPComplete_Activator::activate();
48 }
49
50 /**
51 * The code that runs during plugin deactivation.
52 * This action is documented in includes/class-wpcomplete-deactivator.php
53 */
54 function deactivate_wpcomplete() {
55 require_once plugin_dir_path( __FILE__ ) . 'includes/class-wpcomplete-deactivator.php';
56 WPComplete_Deactivator::deactivate();
57 }
58
59 register_activation_hook( __FILE__, 'activate_wpcomplete' );
60 register_deactivation_hook( __FILE__, 'deactivate_wpcomplete' );
61
62 /**
63 * The core plugin class that is used to define internationalization,
64 * admin-specific hooks, and public-facing site hooks.
65 */
66 require plugin_dir_path( __FILE__ ) . 'includes/class-wpcomplete.php';
67
68 /**
69 * Begins execution of the plugin.
70 *
71 * Since everything within the plugin is registered via hooks,
72 * then kicking off the plugin from this point in the file does
73 * not affect the page life cycle.
74 *
75 * @since 1.0.0
76 */
77 function run_wpcomplete() {
78
79 $plugin = new WPComplete();
80 $plugin->run();
81
82 }
83 run_wpcomplete();
84