Upgrade to the PRO version to unlock features. * Version: 1.2.0 * Author: Zack Gilbert and Paul Jarvis * Author URI: https://wpcomplete.co * License: GPL-2.0+ * License URI: http://www.gnu.org/licenses/gpl-2.0.txt * Text Domain: wpcomplete * Domain Path: /languages */ // If this file is called directly, abort. if ( ! defined( 'WPINC' ) ) { die; } // Define some variables we will use throughout the plugin: define( 'WPCOMPLETE_STORE_URL', 'https://wpcomplete.co' ); define( 'WPCOMPLETE_PRODUCT_NAME', 'WPComplete' ); define( 'WPCOMPLETE_PREFIX', 'wpcomplete' ); /** * The code that runs during plugin activation. * This action is documented in includes/class-wpcomplete-activator.php */ function activate_wpcomplete() { require_once plugin_dir_path( __FILE__ ) . 'includes/class-wpcomplete-activator.php'; WPComplete_Activator::activate(); } /** * The code that runs during plugin deactivation. * This action is documented in includes/class-wpcomplete-deactivator.php */ function deactivate_wpcomplete() { require_once plugin_dir_path( __FILE__ ) . 'includes/class-wpcomplete-deactivator.php'; WPComplete_Deactivator::deactivate(); } register_activation_hook( __FILE__, 'activate_wpcomplete' ); register_deactivation_hook( __FILE__, 'deactivate_wpcomplete' ); /** * The code that checks for plugin updates. * Borrowed from: https://github.com/YahnisElsts/plugin-update-checker */ require plugin_dir_path( __FILE__ ) . 'includes/plugin-update-checker-3.1.php'; $myUpdateChecker = PucFactory::buildUpdateChecker( 'https://wpcomplete.co/free.json', __FILE__ ); /** * The core plugin class that is used to define internationalization, * admin-specific hooks, and public-facing site hooks. */ require plugin_dir_path( __FILE__ ) . 'includes/class-wpcomplete.php'; /** * Begins execution of the plugin. * * Since everything within the plugin is registered via hooks, * then kicking off the plugin from this point in the file does * not affect the page life cycle. * * @since 1.0.0 */ function run_wpcomplete() { $plugin = new WPComplete(); $plugin->run(); } run_wpcomplete();