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

83 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.1.0
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 runs during plugin activation.
32 * This action is documented in includes/class-wpcomplete-activator.php
33 */
34 function activate_wpcomplete() {
35 require_once plugin_dir_path( __FILE__ ) . 'includes/class-wpcomplete-activator.php';
36 WPComplete_Activator::activate();
37 }
38
39 /**
40 * The code that runs during plugin deactivation.
41 * This action is documented in includes/class-wpcomplete-deactivator.php
42 */
43 function deactivate_wpcomplete() {
44 require_once plugin_dir_path( __FILE__ ) . 'includes/class-wpcomplete-deactivator.php';
45 WPComplete_Deactivator::deactivate();
46 }
47
48 register_activation_hook( __FILE__, 'activate_wpcomplete' );
49 register_deactivation_hook( __FILE__, 'deactivate_wpcomplete' );
50
51 /**
52 * The code that checks for plugin updates.
53 * Borrowed from: https://github.com/YahnisElsts/plugin-update-checker
54 */
55 require plugin_dir_path( __FILE__ ) . 'includes/plugin-update-checker-3.1.php';
56 $myUpdateChecker = PucFactory::buildUpdateChecker(
57 'https://wpcomplete.co/free.json',
58 __FILE__
59 );
60
61 /**
62 * The core plugin class that is used to define internationalization,
63 * admin-specific hooks, and public-facing site hooks.
64 */
65 require plugin_dir_path( __FILE__ ) . 'includes/class-wpcomplete.php';
66
67 /**
68 * Begins execution of the plugin.
69 *
70 * Since everything within the plugin is registered via hooks,
71 * then kicking off the plugin from this point in the file does
72 * not affect the page life cycle.
73 *
74 * @since 1.0.0
75 */
76 function run_wpcomplete() {
77
78 $plugin = new WPComplete();
79 $plugin->run();
80
81 }
82 run_wpcomplete();
83