PluginProbe ʕ •ᴥ•ʔ
Constant Contact + WooCommerce / 2.3.1
Constant Contact + WooCommerce v2.3.1
trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 2.0.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.3.0 2.3.1 2.3.2 2.4.0 2.4.1 2.4.2 2.4.3
constant-contact-woocommerce / plugin.php
constant-contact-woocommerce Last commit date
app 1 year ago src 1 year ago vendor 1 year ago README.txt 1 year ago composer.json 1 year ago composer.lock 1 year ago docker_tag 1 year ago output.log 1 year ago plugin.php 1 year ago uninstall.php 1 year ago
plugin.php
45 lines
1 <?php
2 /**
3 * Constant Contact + WooCommerce
4 * @since 2019-02-15
5 * @author Constant Contact <https://www.constantcontact.com/>
6 * @package cc-woo
7 * @wordpress-plugin
8 * Plugin Name: Constant Contact + WooCommerce
9 * Description: Add products to your emails and sync your contacts.
10 * Plugin URI: https://github.com/WebDevStudios/constant-contact-woocommerce
11 * Version: 2.3.1
12 * Author: Constant Contact
13 * Author URI: https://www.constantcontact.com/
14 * Text Domain: constant-contact-woocommerce
15 * WC requires at least: 3.6.0
16 * WC tested up to: 9.0.1
17 * Requires PHP: 7.2
18 * License: GPL-3.0+
19 * License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
20 */
21
22 // Autoload things.
23 $cc_woo_autoloader = dirname( __FILE__ ) . '/vendor/autoload.php';
24
25 if ( ! is_readable( $cc_woo_autoloader ) ) {
26 /* Translators: Placeholder is the current directory. */
27 throw new \Exception( sprintf( __( 'Please run `composer install` in the plugin folder "%s" and try activating this plugin again.', 'constant-contact-woocommerce' ), dirname( __FILE__ ) ) );
28 }
29
30 require_once $cc_woo_autoloader;
31
32 $cc_woo_plugin = new \WebDevStudios\CCForWoo\Plugin( __FILE__ );
33 $cc_woo_plugin->run();
34
35
36 // Declare compatibility with custom order tables for WooCommerce.
37 add_action(
38 'before_woocommerce_init',
39 function () {
40 if ( class_exists( '\Automattic\WooCommerce\Utilities\FeaturesUtil' ) ) {
41 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
42 }
43 }
44 );
45