| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Plugin Name: Addonify WooCommerce Quick View |
| 5 |
* Plugin URI: https://addonify.com/downloads/woocommerce-quick-view/ |
| 6 |
* Description: Addonify WooCommerce Quick View plugin adds functionality to have a WooCommerce product quick preview on a modal window. |
| 7 |
* Version: 1.0.9 |
| 8 |
* Author: Addonify |
| 9 |
* Author URI: https://addonify.com |
| 10 |
* License: GPL-2.0+ |
| 11 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt |
| 12 |
* Text Domain: addonify-quick-view |
| 13 |
* Domain Path: /languages |
| 14 |
*/ |
| 15 |
|
| 16 |
// If this file is called directly, abort. |
| 17 |
if ( ! defined( 'WPINC' ) ) { |
| 18 |
die; |
| 19 |
} |
| 20 |
|
| 21 |
|
| 22 |
/** |
| 23 |
* Currently plugin version. |
| 24 |
* Start at version 1.0.0 and use SemVer - https://semver.org |
| 25 |
* Rename this for your plugin and update it as you release new versions. |
| 26 |
*/ |
| 27 |
define( 'ADDONIFY_QUICK_VIEW_VERSION', '1.0.9' ); |
| 28 |
define( 'ADDONIFY_DB_INITIALS', 'addonify_qv_' ); |
| 29 |
|
| 30 |
|
| 31 |
/** |
| 32 |
* The code that runs during plugin activation. |
| 33 |
* This action is documented in includes/class-addonify-quick-view-activator.php |
| 34 |
*/ |
| 35 |
function activate_addonify_quick_view() { |
| 36 |
require_once plugin_dir_path( __FILE__ ) . 'includes/class-addonify-quick-view-activator.php'; |
| 37 |
Addonify_Quick_View_Activator::activate(); |
| 38 |
} |
| 39 |
|
| 40 |
/** |
| 41 |
* The code that runs during plugin deactivation. |
| 42 |
* This action is documented in includes/class-addonify-quick-view-deactivator.php |
| 43 |
*/ |
| 44 |
function deactivate_addonify_quick_view() { |
| 45 |
require_once plugin_dir_path( __FILE__ ) . 'includes/class-addonify-quick-view-deactivator.php'; |
| 46 |
Addonify_Quick_View_Deactivator::deactivate(); |
| 47 |
} |
| 48 |
|
| 49 |
register_activation_hook( __FILE__, 'activate_addonify_quick_view' ); |
| 50 |
register_deactivation_hook( __FILE__, 'deactivate_addonify_quick_view' ); |
| 51 |
|
| 52 |
/** |
| 53 |
* The core plugin class that is used to define internationalization, |
| 54 |
* admin-specific hooks, and public-facing site hooks. |
| 55 |
*/ |
| 56 |
require plugin_dir_path( __FILE__ ) . 'includes/class-addonify-quick-view.php'; |
| 57 |
|
| 58 |
/** |
| 59 |
* Begins execution of the plugin. |
| 60 |
* |
| 61 |
* Since everything within the plugin is registered via hooks, |
| 62 |
* then kicking off the plugin from this point in the file does |
| 63 |
* not affect the page life cycle. |
| 64 |
* |
| 65 |
* @since 1.0.0 |
| 66 |
*/ |
| 67 |
if ( ! function_exists( 'run_addonify_quick_view' ) ) { |
| 68 |
|
| 69 |
function run_addonify_quick_view() { |
| 70 |
|
| 71 |
$plugin = new Addonify_Quick_View(); |
| 72 |
$plugin->run(); |
| 73 |
|
| 74 |
} |
| 75 |
|
| 76 |
run_addonify_quick_view(); |
| 77 |
} |